[wtr-general] Re: Need to access the first LI element within an UL element

2008-12-12 Thread Darin Duphorn
neral] Re: Need to access the first LI element within an UL element On Fri, Dec 12, 2008 at 12:09 PM, Bret Pettichord wrote: /Signed in as (.*)/.match(browser.ul(:id, 'ulInfoLinks').li(:index, 1).text)[1] nice usage of MatchData captures woot! bret +1 best, marekj

[wtr-general] Re: Need to access the first LI element within an UL element

2008-12-12 Thread marekj
On Fri, Dec 12, 2008 at 12:09 PM, Bret Pettichord wrote: > > /Signed in as (.*)/.match(browser.ul(:id, 'ulInfoLinks').li(:index, > 1).text)[1] > > nice usage of MatchData captures woot! bret +1 best, marekj > Natasha wrote: > > Hi All, > > > > I want to access the value of the LI element, which

[wtr-general] Re: Need to access the first LI element within an UL element

2008-12-12 Thread Natasha Ranney
Thanks Bret. It worked :) Regards, Natasha Bret Pettichord wrote: /Signed in as (.*)/.match(browser.ul(:id, 'ulInfoLinks').li(:index, 1).text)[1] Natasha wrote: > Hi All, > > I want to access the value of the LI element, which is within an UL > element. > > Following is the HTML structure: >

[wtr-general] Re: Need to access the first LI element within an UL element

2008-12-12 Thread Bret Pettichord
/Signed in as (.*)/.match(browser.ul(:id, 'ulInfoLinks').li(:index, 1).text)[1] Natasha wrote: > Hi All, > > I want to access the value of the LI element, which is within an UL > element. > > Following is the HTML structure: > > > > Signed in as username > >

[wtr-general] Re: Need to access the first LI element within an UL element

2008-12-12 Thread Darin Duphorn
Maybe $ie.lis.each {|li| puts li.text } Or $ie.document.getElementsByTagName('Strong').each{|s| puts s.text } -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Natasha Sent: Friday, December 12,