Thanks Bret. It worked :) Regards, Natasha
Bret Pettichord <b...@pettichord.com> 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 username > > .... > > > 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 -~----------~----~----~----~------~----~------~--~---