Try something like this:
browser.link(:text, "text").fire_event('onclick')
For reference:
http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Element.html#M000557
orde
On May 5, 7:16 am, Rodrigo <[email protected]> wrote:
> Hi guys,
>
> I'm trying to click a button I have on a site I'm working on, but this
> button is identified by the following tag and properties:
> <a onclick="document.selectterm.submit();" href="#">Select</a>
>
> I've tried to use the different methods to be able to click on the
> button but no one was successful.
>
> Do you mind to give me an idea to resolve this problem?
>
> Thanks a lot!!
> rODRIGO
>
> --
> Before posting, please readhttp://watir.com/support. In short: search before
> you ask, be nice.
>
> You received this message because you are subscribed
> tohttp://groups.google.com/group/watir-general
> To post: [email protected]
> To unsubscribe: [email protected]
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
You received this message because you are subscribed to
http://groups.google.com/group/watir-general
To post: [email protected]
To unsubscribe: [email protected]