Re: [wtr-general] Unable to click <a class="close" href="javascript:;">x</a>

100 views
Skip to first unread message

Joe Fleck

unread,
Jun 3, 2013, 10:14:54 AM6/3/13
to Watir General
Hi Raymond,

What is the error you are getting?  Can you copy and paste in thread?

Joe


On Mon, Jun 3, 2013 at 8:25 AM, Raymond Wiertz <reed...@gmail.com> wrote:
Hello,

Can anybody help me?
I want to click on a html element <a class="close" href="javascript:;">x</a>

I used:
  browser.link(:class, "close").click

but it doesn't work.

what do i wrong.

regards.

Raymond

--
--
Before posting, please read http://watir.com/support. In short: search before you ask, be nice.
 
watir-...@googlegroups.com
http://groups.google.com/group/watir-general
watir-genera...@googlegroups.com
 
---
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 watir-genera...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Joe Fleck

unread,
Jun 3, 2013, 10:46:40 AM6/3/13
to Watir General
Hi,

Include your code too.  

Joe

Željko Filipin

unread,
Jun 3, 2013, 10:56:45 AM6/3/13
to watir
On Mon, Jun 3, 2013 at 2:25 PM, Raymond Wiertz <reed...@gmail.com> 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

Raymond Wiertz

unread,
Jun 10, 2013, 10:22:09 AM6/10/13
to watir-...@googlegroups.com
Thank you Željko Filipin

That did the trick

Op maandag 3 juni 2013 14:25:13 UTC+2 schreef Raymond Wiertz het volgende:
Reply all
Reply to author
Forward
0 new messages