How to interact with elements inside SVG tag?

SVG stands for Scalable Vector Graphics. In order to interact with elements present inside SVG tag we have to customize our Xpath in the below given format.

Sntax: //*[name()=’svg’]/*[name()=’SVG OBJECT’]

 Here, SVG object is the element inside the SVG tag that you want to interact with.

Xpath Example: (“//*[name()=’svg’]/*[name()=’rect’]”))

Now you can use this locator inside BeatBlip to perform action on the element present inside SVG tag.

Was this page helpful?