TestProject Forum
Powered by leading experts in the test automation community

How to click an image button but this button was inside the div

how to click an image button? but this button was inside the div…

Hello and thanks for reaching out.

If you are trying to click on the button through the recorder and cannot since it’s clicking on the div instead, you can try locating the button and using the click/tap action directly on the XPATH.

You can find the XPATH of that element by using the element explorer:

1

Please let me know if this helps and if you are experiencing any issues.

i was trying to click a portion of the map on our page, but the map is composed by webGL, so when i targeting the icon button it always get the whole div xpath.