Many thanks got your reply. That is awesome It works... All I had to do was change it to, @browser.a(:text => /Album/).when_present.click and it works like a dream.
Never knew we could do stuff like that so really do appreciate your help. Knoll On Wednesday, 8 May 2013 11:36:36 UTC+1, Željko Filipin wrote: > > On Wed, May 8, 2013 at 12:33 PM, <[email protected] <javascript:>> wrote: > >> I have tried @b.link(:text, 'Album' > > > Try this: > > browser.a(:text => /Album/).click > > To find out what Watir thinks the link text is, try this: > > browser.a(:text => /Album/).text > > Željko > -- > https://leanpub.com/watirbook > -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
