FirefoxDriver.Commands.WebDriver.Interaction Class
Interaction related WebDriver endpoints see JsonWireProtocol
Item Index
Methods
clickPage
-
sessionId -
button
Click any mouse button (at the coordinates set by the last moveto command). Note that calling this command after calling buttondown and before calling button up (or any out-of-order interactions sequence) will yield undefined behaviour).
Parameters:
-
sessionIdGETID of the session to route the command to
-
buttonPOSTWhich button, enum: {LEFT = 0, MIDDLE = 1 , RIGHT = 2}. Defaults to the left mouse button if not specified.
doubleclickPage
-
sessionId
Double-clicks at the current mouse coordinates (set by moveto).
Parameters:
-
sessionIdGETID of the session to route the command to
doubletap
-
sessionId
Double tap on the touch screen using finger motion events.
Parameters:
-
sessionIdGETID of the session to route the command to
flick
-
sessionId -
element -
xoffset -
yoffset -
speed
Flick on the touch screen using finger motion events. This flickcommand starts at a particulat screen location.
Parameters:
-
sessionIdGETID of the session to route the command to
-
elementPOSTID of the element where the flick starts
-
xoffsetPOSTThe x offset in pixels to flick by
-
yoffsetPOSTThe y offset in pixels to flick by
-
speedPOSTThe speed in pixels per seconds
longpress
-
sessionId
Long press on the touch screen using finger motion events.
Parameters:
-
sessionIdGETID of the session to route the command to
moveto
-
sessionId -
element -
xoffset -
yoffset
Move the mouse by an offset of the specificed element. If no element is specified, the move is relative to the current mouse cursor. If an element is provided but no offset, the mouse will be moved to the center of the element. If the element is not visible, it will be scrolled into view.
Parameters:
-
sessionIdGETID of the session to route the command to
-
elementPOSTOpaque ID assigned to the element to move to, as described in the WebElement JSON Object. If not specified or is null, the offset is relative to current position of the mouse.
-
xoffsetPOSTX offset to move to, relative to the top-left corner of the element. If not specified, the mouse will move to the middle of the element.
-
yoffsetPOSTY offset to move to, relative to the top-left corner of the element. If not specified, the mouse will move to the middle of the element.
tap
-
sessionId
Single tap on the touch enabled device.
Parameters:
-
sessionIdGETID of the session to route the command to
touchdown
-
sessionId -
x -
y
Finger down on the screen.
Parameters:
-
sessionIdGETID of the session to route the command to
-
xPOSTX coordinate on the screen.
-
yPOSTY coordinate on the screen.
touchmove
-
sessionId -
x -
y
Finger move on the screen.
Parameters:
-
sessionIdGETID of the session to route the command to
-
xPOSTX coordinate on the screen.
-
yPOSTY coordinate on the screen.
touchscroll
-
sessionId -
x -
y
Scroll on the touch screen using finger based motion events. Use this command if you don't care where the scroll starts on the screen.
Parameters:
-
sessionIdGETID of the session to route the command to
-
xPOSTX coordinate on the screen.
-
yPOSTY coordinate on the screen.
touchup
-
sessionId -
x -
y
Finger up on the screen.
Parameters:
-
sessionIdGETID of the session to route the command to
-
xPOSTX coordinate on the screen.
-
yPOSTY coordinate on the screen.
