Xpath For Svg. Expressions Steps and axes ul aidlink Axis. So most of the times we struggle while writing the XPath for SVG elements.
Prefix Example What hrclassedge Anywherea. Name svg and classsvg-connector name circle and classinner-circle. Every SVGs XPath will begin with name svg or local-name svg for their tags Refer above image suppose we want to identify path of the elements mentioned in third line so the XPath would be like-.
To click the element with svg we should identify the element then utilize the Actions class.
The element can be captured in many ways. So for the xpath expression for the image highlighted in the above image should be local-name svg and data-iconhome local-name path. This will help you to identify SVG web objects. Then try the The elements are not from the XHTML namespace but belongs to SVG namespace.