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.

Était-ce utile?

La solution

Looks like this works:

browser.span(:class, 'over').hover
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top