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.

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