What do you mean by automate? How to click on the element? You can use usual method like: browser.link(:text, "Select").click or if due any reason click method does not work: browser.link(:text, "Select").fire_event("onclick") or browser.link(:text, "Select").fire_event("onmousedown")
On Wednesday, February 6, 2013 11:11:52 AM UTC+2, mc060200778 wrote: > > Hi, > > how would you automate following Javascript link in watir-webdriver? > > <a > href='javascript:selectDevice("122334455","12121212","#divAddCustomerLine");'>Select</a> > > > Thanks > -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@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-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.