Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
226 views
by Contributing Tester (12 points)
edited by
How to identify the element when there is no ID, name, tag name and text?

1 Answer

0 like 0 dislike
by Master (1.2k points)
If the element is present on the UI, there will be some identifier.

You can try identifying a parent element and under that, you can identify the child element.

Also, you can try using XPath.

If the element you are trying to identify is not part of the DOM. i.e. it's Flash object or PDF, or any other type than HTML, you can not identify using selenium. In this case, you may use tools like Sikuli.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...