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, 2008 11:24 AM
To: Watir General
Subject: [wtr-general] Need to access the first LI element within an UL
element


Hi All,

I want to access the value of the LI element, which is within an UL
element.

Following is the HTML structure:

<UL class=inline id=ulInfoLinks>
      <LI>
         Signed in as <STRONG> username </STRONG>
      </LI>
     <LI> .... </LI>
</UL>

Basically I want to retrieve the name of the user that is logged in.

Thanks,
Natasha





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to