Mouse movement / mouseover and JavaScript evaluation in watir

Posted by Bilal Aslam on Stack Overflow See other posts from Stack Overflow or by Bilal Aslam
Published on 2010-03-10T22:22:52Z Indexed on 2010/05/06 18:38 UTC
Read the original article Hit count: 539

Filed under:
|
|

I have a JavaScript-heavy Rails app which I am testing in watir. I have two specific testing requirements:

  • I need to be able to simulate moving the mouse to a specific area of the screen (or at least triggering the onmouseover event for a div)
  • Evaluating a snippet of JavaScript once the above has happened to see if a flag is set correctly

I haven't been able to figure out how to do this in watir. Any ideas on how to do this?

© Stack Overflow or respective owner

Related posts about watir

Related posts about firewatir