Creating XPATH for svg tag
For svg
nodes you need to use below syntax:
//*[name()="svg" and @class="svg-connector"]
This is because common HTML
nodes and svg
nodes belongs to different namespaces
The <svg>
elements are not from the XHTML namespace but belongs to SVG namespace. Hence you have to specify name()="svg"
while constructing the xpath
as follows :
//*[name()="svg" and @class="svg-connector"]/*[name()="circle" and @class="inner-circle"]
You can find a detailed discussion in Selenium WebDriver [Java]: How to Click on elements within an SVG using XPath