<text> tag in xpath inside <g> tag. How to create a xpath?

Ah, Scalable Vector Graphics embeded in HTML!

Then you need to write far complex XPath.

For example

//*[local-name()='svg']//*[local-name()='g' and @id='MACHINE-ID']/*[local-name()='text' and position()=1]

For more info, Please have a look at the following post:

1 Like