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
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
Post a Comment