Thanks, It worked - except that before_text and after_text seem to be reversed in watir 1.6.3. I used after_text and got what I needed.
Andy On Apr 13, 7:09 pm, orde <ohil...@gmail.com> wrote: > 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- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---