Did you get some error? It will be informative if you provide some exception or something rather than 'it is not working'
Hmm, not sure how such statement can work at all: popup = $browser.attach($browser.link(:url, $browser.link(:url, "javascript:doNothing()").click)) .attach method is more used to attach to existing instances of browser, not to Javascript alerts *e.g.* *Watir*::IE.*attach*(:title, "Google") -- -- 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.