ruby - How to retrieve values from a rect html tag using watir -


is there way retrieve values rect tag using watir. can give example url. there rectangular bars on lower part of page. please find it

http://www.healthgrades.com/hospital-directory/california-ca-los-angeles/good-samaritan-hospital-hgste2618d46050471?#readmission

i have seen couple of sources have not got way details. can 1 me here?

yes, can access generic element (example only, not applicable code). data element looking highcharts-data-labels.

values = browser.element(:css => "g.highcharts-data-labels") 

you access element using xpath selector , can in chrome inspecting element , asking xpath selector

//*[@id="highcharts-2"]/svg/g[4]/g[2]/text 

good luck!


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -