Open lukeis opened 8 years ago
Reported by barancev
on 2012-10-09 08:21:00
I've been thinking about this. The problem is that there's an expectation that because
we can handle the HTML DOM, we can also handle the SVG DOM. This isn't the case right
now, so speaking from a technical point of view, this is an enhancement request.
Reported by simon.m.stewart
on 2012-10-15 21:10:01
Is it possible to use an alternative in the absence of this feature? Any tips? Or is
the Webdriver team available to add support for this case?
We are pondering whether we should make attempts to build in this feature, without
knowing how much work it might entail. Before doing anything, we want to check with
the Webdriver team on the progress on this. Given it is tagged as low priority I was
not sure it was going to get done in the near future.
Reported by binod80
on 2012-12-17 14:47:37
Hi,
I was writing a test for crossfilter elements and that is using svg too. After fiddling
around I managed to select some svg sub-elements using a combination of class, tag
and xpath selectors. However I cannot send click events there when I try to call getLocation()
on these elements I get:
java.lang.NullPointerException
at org.openqa.selenium.remote.RemoteWebElement.getLocation(RemoteWebElement.java:308)
Is this normal behavior? I would expect that either I get an error from the selector
or I can get the element and its location.
Reported by renauditab
on 2013-02-12 10:26:20
Not sure if SVG is being used widely. But this is really a roadblock
Reported by ilynaf
on 2014-01-08 10:11:36
After a long time, pinging, any updates on this?
Reported by binod80
on 2015-04-22 13:13:32
I'm facing this issue, DOM structure as attached.
List<WebElement> wes = webDriver.findElements(By.xpath("//*[name()='svg' and @preserveAspectRatio='xMidYMid']"));
System.out.println(wes.size());// wes.size() return 0, that means WebDriver
cannot find the specified SVG element, but the xpath is valid in chrome console.
HTML source as following.
<div id="__chart0" data-sap-ui="__chart0"><svg preserveAspectRatio="xMidYMid" viewBox="0
0 120 120" width="120" height="120"><g transform="translate(60,60)"><text text-anchor="middle"
class="sapExtentUilibArcChartText" dy="19" style="font-size: 51px;">83<tspan style="font-size:
25.5px;">%</tspan></text><path d="M0,57A57,57 0 1,1 0,-57A57,57 0 1,1 0,57M0,53A53,53
0 1,0 0,-53A53,53 0 1,0 0,53Z" class="sapExtentUilibArcChartBackground" style="fill:
rgb(255, 255, 255);"></path><path d="M3.4902433775699565e-15,-57A57,57 0 1,1 -49.94948076250023,-27.459959423797756L-46.44425404232478,-25.532944727390895A53,53
0 1,0 3.245314017740486e-15,-53Z" class="sapExtentUilibArcChartForeground globalDiagramColor1"
style="fill: rgb(255, 255, 255);"></path></g></svg></div>
Reported by hujun.me
on 2015-07-30 08:39:02
Reported by luke.semerau
on 2015-09-17 17:45:10
Originally reported on Google Code with ID 4647
Reported by
binod80
on 2012-10-08 14:35:43