I have an SVG object with a few circle and rectangle elements. Using webdriver, I can click on the main svg object, but not any of the elements within it. The problem only s
Here you go:
driver.findElement(By.cssSelector("#canvas > svg > rect")).getAttribute("x") driver.findElement(By.cssSelector("#canvas > svg > rect")).getAttribute("y")
This way you can do it.