Drag / Drop without locator (or panning)

24 views
Skip to first unread message

Max Russell

unread,
May 4, 2018, 4:05:41 AM5/4/18
to Selenium Users
Is there an existing keyword to perform a mouse pan in a browser - e.g. clicking within the browser, possibly by coordinate, then dragging the mouse to pan the image on screen?

The existing drag and drop keywords both appear to use an element to drag.

badri manoj

unread,
May 4, 2018, 4:12:29 AM5/4/18
to seleniu...@googlegroups.com
Max try Actions class Method

Actions act = new Actions(driver);
act.moveByOffset(0, 1).click();

it might help you

Thanks and Regards,
Badri Manoj
> --
> You received this message because you are subscribed to the Google Groups
> "Selenium Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to selenium-user...@googlegroups.com.
> To post to this group, send email to seleniu...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/selenium-users/b729de9e-821b-47e6-96ac-0bb5f0f26039%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

arshan khan

unread,
May 4, 2018, 4:28:51 AM5/4/18
to seleniu...@googlegroups.com
You can use html drag and drop API.

From: 'Max Russell' via Selenium Users
Sent: ‎04/‎05/‎2018 01:35 PM
To: Selenium Users
Subject: [selenium-users] Drag / Drop without locator (or panning)

Is there an existing keyword to perform a mouse pan in a browser - e.g. clicking within the browser, possibly by coordinate, then dragging the mouse to pan the image on screen?

The existing drag and drop keywords both appear to use an element to drag.

Reply all
Reply to author
Forward
0 new messages