Looks like this would do it:

puts browser.link(:index, 1).before_text

On Apr 13, 2:31 pm, andrew.d...@lthree.com wrote:
> if I have some html that looks like
>
> <span id='myid'>
>
> text1
> <a ....>link text</a>
> text 2
> <select>...</select>
> text 3
>
> </span>
>
> what is the Watir command to pull out just 'text 2'?
>
> Andy
--~--~---------~--~----~------------~-------~--~----~
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