!!

Welcome to Selenium Webdriver Forum

As a web user you can read and search through forum content. Once you have registered and signed you can post topics, post replies, set up watch lists, modify forum settings, and use private messaging.

Author Topic: How can I simulate a mouseover event from WebDriver?  (Read 3377 times)

James Carr

  • Web User
How can I simulate a mouseover event from WebDriver?
« on: February 23, 2012, 01:44:57 PM »
Hi,
 Subject says it all.
 
Thanks,
 James

Simon Stewart

  • Web User
Re: How can I simulate a mouseover event from WebDriver?
« Reply #1 on: February 23, 2012, 01:45:12 PM »
Hi James,
 Is the mouseover meant to be happening as part of another event, or is
 this simulating having the user "hover" the mouse over an element? If
 it's the former, then I can fix things up quickly if they're not
 working already, if it's the latter, things get interesting.
 
I've looked at adding a "hover" method to WebElement, and this worked
 pretty well up to a point. That point was the "sucker fish" style menu
 in Firefox: it seems like the events are the things that change the
 menu's style. Sadly, that's almost exactly the reason why someone
 might actually want to use the "hover" method. *sigh*
 
Regards,
 
Simon
 

- Show quoted text -

James Carr

  • Web User
Re: How can I simulate a mouseover event from WebDriver?
« Reply #2 on: February 23, 2012, 01:45:21 PM »
Hi Simon,
 well, that is a good thing... you DO want to change an elements style
 if the style changes on :hover. ;)
 
Thanks,
 james
 
On Feb 25, 3:44 pm, Simon Stewart <simon.m.stew...@gmail.com> wrote:
 

- Show quoted text -

Selenium Webdriver

Re: How can I simulate a mouseover event from WebDriver?
« Reply #2 on: February 23, 2012, 01:45:21 PM »

Simon Stewart

  • Web User
Re: How can I simulate a mouseover event from WebDriver?
« Reply #3 on: February 23, 2012, 01:45:29 PM »
Hi James,
 You are, of course, correct. It just turns out to be a devil of a
 thing to do properly :)
 
Regards,
 
Simon
 

- Show quoted text -


 

Related Topics

  Subject / Started by Replies Last post
0 Replies
1136 Views
Last post February 23, 2012, 04:04:47 PM
by Joshi
4 Replies
1907 Views
Last post April 01, 2012, 09:12:22 PM
by jeevan
2 Replies
1709 Views
Last post April 15, 2012, 05:08:53 PM
by Mike Riley
5 Replies
3241 Views
Last post October 05, 2012, 12:04:56 PM
by adityakumar
5 Replies
2974 Views
Last post June 13, 2012, 05:39:06 AM
by uma maheswari
9 Replies
2551 Views
Last post January 22, 2013, 08:48:10 AM
by Andrew_
0 Replies
715 Views
Last post April 02, 2013, 09:15:48 AM
by bouchehda