Question

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.

Was it helpful?

Solution

Looks like this works:

browser.span(:class, 'over').hover
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top