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
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
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:
>
/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
>
>
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,