Webdriver: how to use mouseDown/mouseUp/mouseMove on an element

656 views
Skip to first unread message

bruce

unread,
Feb 23, 2011, 4:25:13 AM2/23/11
to Selenium Users
any sample codes?

my code does not work.


WebDriver driver = new FirefoxDriver();

driver.get("http://localhost:81/workspace/Test/");

RenderedRemoteWebElement result =
(RenderedRemoteWebElement)driver.findElement(By.id("a1"));

((HasInputDevices)
driver).getMouse().mouseDown(result.getCoordinates());

Simon Stewart

unread,
Feb 23, 2011, 9:02:16 PM2/23/11
to seleniu...@googlegroups.com
Why do you only want to do a "mouse down"? A "click" is more normal.

Simon

> --
> You received this message because you are subscribed to the Google Groups "Selenium Users" group.
> To post to this group, send email to seleniu...@googlegroups.com.
> To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
>
>

Pavel Niedoba

unread,
Jun 17, 2013, 10:54:46 AM6/17/13
to seleniu...@googlegroups.com
I would LOVE to, but click works only sometimes, if you google it you'll find, it is known problem. Mouse up/down is supposed to be workaround ...


Reply all
Reply to author
Forward
0 new messages