How about RemoteDriver? I can't get moveto events working *at all*
over that; I tried a variety of methods, including one based on that
link, in the Ruby Selenium-WebDriver binding, like so:
e=@driver.find_element(:xpath, "//span[text()='IL-4']")
@driver.action.move_to(e, 0, 0).perform;
and from the server I get this:
12:02:41.240 INFO - Executing: [mousemove: 291 false] at URL: /session/
1304794298927/moveto)
12:02:41.254 WARN - Exception thrown
java.lang.UnsupportedOperationException: Unrecognized command: POST /
session/778b8e46-7252-4f63
-a488-8258a557293d/moveto
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:
131)
at
org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:
105)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:
409)
at org.openqa.selenium.remote.RemoteWebDriver
$RemoteMouse.mouseMove(RemoteWebDriver.java:701)
at
org.openqa.selenium.support.events.internal.EventFiringMouse.mouseMove(EventFiringMouse.java:
43)
at
org.openqa.selenium.remote.server.handler.interactions.MouseMoveToLocation.call(MouseMoveToLocation.java:
61)
at
org.openqa.selenium.remote.server.handler.interactions.MouseMoveToLocation.call(MouseMoveToLocation.java:
1)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown
Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)
12:02:41.259 WARN - Exception: Unrecognized command: POST /session/
778b8e46-7252
-4f63-a488-8258a557293d/moveto
With no means of triggering the javascript "mouseOver" event, there
are huge amounts of websites that can't actually be tested with
Selenium-WebDriver at all. Especially since the dragElement action,
which does "work", doesn't seem to trigger that event either. With
Selenium 1.0, I'd just use mouse_over and then do the dragging, but I
see no way to do that with Selenium-WebDriver.
I'm more than happy to contribute code to fix this, or help in any
other way I can, but I'd really need some pointers as I've almost no
java experience and certainly none with direct web browser
manipulation.
As it is, though, I'm rather stuck: there's an element of the site I'm
testing that I simply cannot interact with with 2.0b3 (and other
things that don't work in the 1.0 branch; see
http://groups.google.com/group/selenium-users/browse_frm/thread/c0284638f19b503a
if you care).
Thanks for any assistance.
-Robin
On May 6, 6:59 pm, doridori Jo <
dorik...@gmail.com> wrote:
> is it possible to get this working in firefoxdriver?
>
> I agree, most javascript based web applications for example on
> mouseover(hover) the menu item, submenus are expanded....hover() is an
> absolute must....
>
> I am not sure how to approach that latter situation....A user would hover
> their mouse cursor over a certain position or certain element, and how would
> you decide when to fire the hoverhasoccured event?
>
> This is a must have event.....
>
>
>
>
>
>
>
> On Fri, May 6, 2011 at 6:05 PM, Norman Chin <
norman.c...@gmail.com> wrote:
> > Read this:
>
> >
http://groups.google.com/group/webdriver/browse_thread/thread/80b36c5...
>
> > It works on IE.