I’ve been trying to test Javascript events with watir-webdriver, which seem to all work fine within Firefox and IE however I’m having problems with Chrome.
browser.span(:class, 'over').fire_event "onmouseover"
The line above seems to cause the script to break. I am using the latest chrome webdriver (19.0.1068.0) and my gems are up to date.
the chrome log file says: Script execution failed.
Looks like this works: