Hi sahanijuttukon, what’s up?
There are few possible reasons for this behavior,
- First try edit the element like in the image below,
To check your locators use the magnifying glass
(notice the element must be present in 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:
- Check your test settings, give your test more time to find the element,
You can do it like so:
Let me know if that helped you solved the problem.