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
More Related Contents:
- How to click on SVG elements using XPath and Selenium WebDriver through Java
- What is the difference between cssSelector & Xpath and which is better with respect to performance for cross browser testing?
- What is the difference between a CSS selector and XPath? And which is better with respect to performance for cross-browser testing?
- What is the difference between a CSS and XPath selector? And which is better with respect to performance for cross-browser testing?
- Using an OR condition in Xpath to identify the same element
- Locating an element by id
- Selenium xpath selector based on the element text
- What Is Selenium And What Is WebDriver?
- NoSuchElementException, Selenium unable to locate element
- Using implicit wait in selenium
- Selenium: Point towards default Chrome session
- SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 81
- How to inspect element for Selenium v3.6 as FireBug is not an option any more for FF 56?
- Can Selenium WebDriver open browser windows silently in the background?
- Selenium test scripts to login into google account through new ajax login form
- How to verify an XPath expression in Chrome Developers tool or Firefox’s Firebug?
- Clarification of the cause of mixing Implicit and Explicit waits in Selenium doc
- How to solve the error “Not a valid XPath expression”
- What is benefit of using ChromeDriver over WebDriver if we are using only Chrome Browser in our Selenium Automation Script
- Selenium and non-headless browser keeps asking for Captcha
- How to make Xvfb display visible?
- How to find element by part of its id name in selenium with python
- I need to find an element in Selenium by CSS
- Selenium use chrome on Colab got unexpectedly exited
- Get PID of Browser launched by selenium
- How to wait for either of the two elements in the page using selenium xpath
- How to switch control from child window to parent window in selenium webdriver?
- Is string matches() supported in Selenium Webdriver 2?
- How to click on Load More button within Google Trends and print all the titles through Selenium and Python
- Only local connections are allowed Chrome and Selenium webdriver