Please try to use the following steps which can be found in create step manually under actions:
- Click on dynamic element
- click at coordinate (X, Y)
In the case the two option above did not work for you, you might need to create a custom locator. I have added below a basic explanation on how to use XPATH for locating elements in the page.
- First, try to edit the element like in the image below,
To check your locators use the magnifying glass
(notice the element must be present on the page when checking a locator):
If another locator is more consistent make it your primary locator, push it to the top with the arrows next to the magnifying glass.
- Check for a unique attribute and search the button by that locator,
you can make your custom locator like this for example:
For instance, my locator for Amazon looks like this:
However, you can use TestProject built-in locator generator like this:
by pressing double shift on any element you can freeze it and then extract multiple XPaths by choosing different attributes. find the one that works best in your test case.
If you weren’t successful or you couldn’t use the recorder to built working locators please reach out on our support chat.