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
Try this workaround :
WebElement mapObject = driver.findElement(By.xpath("//*[name()='svg']/*[name()='rect']")); ((JavascriptExecutor) driver).executeScript("arguments[0].click();", mapObject);
Whenever I have too many problems with some elements while trying to click them, I use this workaround.