cURL
curl --request PATCH \ --url https://app.octomind.dev/api/apiKey/v2/test-targets/{testTargetId}/test-cases/{testCaseId}/elements/{elementId} \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data '{ "locatorLine": "<string>" }'
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "index": 123, "interaction": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "action": "EXTRACT", "calledWith": "<string>", "testCaseElementId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }, "assertion": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "expectation": "VISIBLE", "calledWith": "<string>", "testCaseElementId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }, "selectors": [ { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "index": 123, "selector": "<string>", "selectorType": "TEXT", "options": {}, "testCaseElementId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" } ], "testCaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "ignoreFailure": true }
Update a the locator line of a specific test case element
The ID of the test target
The ID of the test case
The ID of the test case element
Test case element updated successfully
The response is of type object.
object