Hi,
I have some page source that looks like:
div class=battery ul class=battery-level-list
data-battery-level=5.71535li class=green1/li
li class=green1/lili
class=green1/lili
Hi,
I have been struggling with how to extract the value of
data-battery-level from the code below:
div class=battery ul class=battery-level-list
data-battery-level=5.71535li class=green1/li
li class=green1/lili
I think you want this.
b.ul(:class =
battery-level-list).attribute_value(data-battery-level)
= 5.71535
On Sunday, June 30, 2013 10:01:24 AM UTC-4, Fred Cassirer wrote:
Hi,
I have been struggling with how to extract the value of
data-battery-level from the code below:
div class=battery
We have developed many tools in Watir1.6.5.. So we are still using the old
version:)
On Monday, 1 July 2013 00:38:17 UTC+5:30, Dan wrote:
I don't know why you're using such an old version of watir. You should
upgrade and your life will be much easer.
On Sunday, June 30, 2013 11:21:22 AM
Manually when you use this menu do you click or hover to expand it? You
may want to try b.li(:id,ctl00_ChangeCustodyMenu).hover to expand the
menu.
On Friday, June 28, 2013 2:44:54 PM UTC-4, scra...@foray.com wrote:
Hi Joe,
Thanks for the help. I tried the tip you suggested, but it's
Dan,
Thanks so much, that worked perfectly.
-Fred
On Monday, July 1, 2013 8:59:05 AM UTC-4, Dan wrote:
I think you want this.
b.ul(:class =
battery-level-list).attribute_value(data-battery-level)
= 5.71535
On Sunday, June 30, 2013 10:01:24 AM UTC-4, Fred Cassirer wrote:
Hi,
I