On Thu, Sep 9, 2010 at 6:11 AM, KH <[email protected]> wrote:
> I've a link <a   onclick="jsmethod('xx' , 'bb')> test it</a>
> How to i access onclick attribute and retrieve the jsmethod params ??

I would suggest to use :html or :xpath.

Example (not tested):

browser.link(:html, /'xx' , 'bb'/).click

More info:

http://wiki.openqa.org/display/WTR/Summary
http://wiki.openqa.org/display/WTR/Ways+Available+To+Identify+HTML+Element
http://wiki.openqa.org/display/WTR/XPath

Željko
--
watir.com - community manager
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them

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