To verify that the expected params are in place you could do something like
this:

if @browser.element_by_xpath("//a[contains(@onclick,'xx')]").exists?
puts 'xx parameter used'
end

rgds
Keith
On Thu, Sep 9, 2010 at 5:11 AM, KH <[email protected]> wrote:

> Hi all
> I've a link <a   onclick="jsmethod('xx' , 'bb')> test it</a>
>
> How to i access onclick attribute and retrieve the jsmethod params ??
>
> Thanks
> KH
>
> --
> 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]<watir-general%[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]

Reply via email to