cURL
curl --request PATCH \ --url https://app.octomind.dev/api/apiKey/v3/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
The locator line of the test case element
Test case element updated successfully
Show child attributes
EXTRACT
ENTER_TEXT
CLICK
SELECT_OPTION
TYPE_TEXT
KEY_PRESS
HOVER
UPLOAD
GO_TO
DRAG_AND_DROP
CLOSE_PAGE
OPEN_EMAIL
VISIBLE
NOT_VISIBLE
TO_BE_CHECKED
NOT_TO_BE_CHECKED
TO_HAVE_VALUE
TO_CONTAIN_TEXT
TO_HAVE_STYLE
TEXT
LABEL
PLACEHOLDER
ROLE