[wtr-general] Help with ul class values

2013-07-01 Thread Fred Cassirer
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

[wtr-general] Picking out attribute values from inside a div

2013-07-01 Thread Fred Cassirer
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

[wtr-general] Re: Picking out attribute values from inside a div

2013-07-01 Thread Dan
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

[wtr-general] Re: passing value to the div

2013-07-01 Thread sivam
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

Re: [wtr-general] Selecting items from JS drop down list

2013-07-01 Thread Dan
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

[wtr-general] Re: Picking out attribute values from inside a div

2013-07-01 Thread Fred Cassirer
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