javascript events - watir-webdriver chromedriver not working?
-
03-06-2021 - |
Frage
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.
Lösung
Looks like this works:
browser.span(:class, 'over').hover
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow