Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Status-Untriaged
New issue 6441 by
swaminad...@gmail.com: Unable to access svg path tags
using webdriver on Firefox and IE browsers.
http://code.google.com/p/selenium/issues/detail?id=6441
Hello,
Can any help me to access the svg elements using selenium webdriver. I was
able to click on the svg elements that contains svg circles, but i was not
able to access svg paths. Here are the following thing i have tried out.
1. Tried using xpath locator and when we try to check the visibility it is
returning true, but we are not able to click on the bubble.
Xpath Locator:
element :path_click, Proc.new {|
index| "//div[@id='views-by-date']//div//[local-name()='svg']//[local-name()='g'][5]//[local-name()='g'][2]/[local-name()='path'][#
{index}]"}
2. Tried using CSS locator and even with this, webdriver is able to locate
the element. but unable to click on the bubble.
CSS Locator :
element :path_click, "css=g.highcharts-tracker > g > path"
3.Tried using javascript commands by using execute_script API, we are able
to get the attributes of the "path" tag under the "g" tag, but we are not
able to perform any operation on the element.
JS :
document.getElementsByClassName('highcharts-markers')[0].childNodes.item(0)
4. Tried using keyboard events and didn't worked as well.
Accessing svg tag elements is bit tough in firefox, if it a circle tag of
svg, then we have proper javascript support. Since i am using the "path"
tag i am unable to click on bubble element.
What steps will reproduce the problem?
1. Take any svg path elements.
2 Try to click the svg path elements.
Expected Result : Should be able to access the svg path tags.
Actual Result : Unable to access svg path tags.
Selenium version: 2.35.0
OS: Linux(Ubuntu), OSX(Lion)
Browser: FF, IE
Browser version: FF(21,23,24), IE(8,9,10)
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings