Zejko, I don't understand what you're suggesting? The code on the page is just a submit button. How would I write an onclick event for the button in Watir? When I tried it, it didn't work.
Here's what I tried: b.button(:name => "submit1").fire_event "onClick" I also tried this: b.send_keys :enter which didn't work either. I think it might be worthy to note that I ALSO tried the Google Button test code, copying it EXACTLY, and it doesn't work either. This might be a different issue, though, because it says the object is hidden. Maybe google re-did their search page since the example provided in the Watir documentation. Whatever's going on here, it makes Watir completely useless to me. I've tried several forms, and I've tried several different ways, and I can't get it to work. Could I be missing a library? Could I have my Mac configured incorrectly? Everything else seems to work (going to a site, filling in fields, etc.), but I can't submit. Please help! On Tuesday, July 17, 2012 2:45:42 AM UTC-5, Željko Filipin wrote: > > Maybe you need to fire javascript event: > > > http://stackoverflow.com/questions/3787555/how-to-find-out-which-javascript-events-fired > > Željko > -- > filipin.eu -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
