Did you try
$b.link(:text,/Sign Out/).click
?
On Jan 1, 4:34 pm, blkjk <[email protected]> wrote:
> that works only with FireFox for me
>
> On Dec 20 2010, 11:09 pm, Arto Vuori <[email protected]> wrote:
>
>
>
> > Hi blkjk,
>
> > try with a regular expression,
>
> > $b.link(:href, /logout\/logout/).click
>
> > --Arto Vuori
>
> > On 21 joulu, 01:01, blkjk <[email protected]> wrote:
>
> > > Hi -
>
> > > I wish to condense my logout code so I don't have to decide which
> > > browser I am using.
> > > I am driving IE and FireFox. The source on the actual page is:
>
> > > <div class="linkEnterExit">
> > >     <a href="/logout/logout">Sign Out</a>
> > > </div>
>
> > > The code I am using is browser dependent, but wish to eliminate that
> > > (as seen below):
> > >  if ($bType == "IE")
> > >     $b.link(:href, 'http://www.abc.com/logout/logout').click
> > >   else
> > >     $b.link(:href, '/logout/logout').click
>
> > > I figure this is likely easy to resolve, but am still new to Watir.
> > > Thanks for any help.- Hide quoted text -
>
> - Show quoted text -

-- 
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]

Reply via email to