How to get text of an element in selenium where there is no Identifier attached to it?

I have tried to find the text of an element using element ID and name but unable to find the text when there is no identifier. Can Someone help me?

1 Like

You can find elements using other identifiers as well i.e class name, tag name etc.

Still if there is not a single identifier available then you can find it using xpath.

For detailed information on xpath usage you can follow this link