On Mon, Jun 3, 2013 at 2:25 PM, Raymond Wiertz <[email protected]> wrote:

> <a class="close" href="javascript:;">x</a>
>   browser.link(:class, "close").click


Try this:

browser.a(:class_name => "close").click

or

browser.a(:text => "x").click

More information:
http://jkotests.wordpress.com/2013/04/12/list-of-valid-watir-webdriver-locators/

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


Reply via email to