Table of Contents

Class RemoteTouchScreen

Namespace
OpenQA.Selenium.Remote
Assembly
WebDriver.dll

Defines the interface through which the user can execute advanced touch screen interactions.

public class RemoteTouchScreen : ITouchScreen
Inheritance
RemoteTouchScreen
Implements
Inherited Members

Constructors

RemoteTouchScreen(RemoteWebDriver)

Initializes a new instance of the RemoteTouchScreen class.

public RemoteTouchScreen(RemoteWebDriver driver)

Parameters

driver RemoteWebDriver

The RemoteWebDriver for which the touch screen will be managed.

Methods

DoubleTap(ICoordinates)

Allows the execution of double tap on the screen, analogous to click using a Mouse.

public void DoubleTap(ICoordinates where)

Parameters

where ICoordinates

The ICoordinates object representing the location on the screen, usually an IWebElement.

Down(int, int)

Allows the execution of the gesture 'down' on the screen. It is typically the first of a sequence of touch gestures.

public void Down(int locationX, int locationY)

Parameters

locationX int

The x coordinate relative to the view port.

locationY int

The y coordinate relative to the view port.

Flick(ICoordinates, int, int, int)

Creates a flick gesture for the current view starting at a specific location.

public void Flick(ICoordinates where, int offsetX, int offsetY, int speed)

Parameters

where ICoordinates

The ICoordinates object representing the location on the screen where the scroll starts, usually an IWebElement.

offsetX int

The x offset relative to the viewport.

offsetY int

The y offset relative to the viewport.

speed int

The speed in pixels per second.

Flick(int, int)

Creates a flick gesture for the current view.

public void Flick(int speedX, int speedY)

Parameters

speedX int

The horizontal speed in pixels per second.

speedY int

The vertical speed in pixels per second.

LongPress(ICoordinates)

Allows the execution of a long press gesture on the screen.

public void LongPress(ICoordinates where)

Parameters

where ICoordinates

The ICoordinates object representing the location on the screen, usually an IWebElement.

Move(int, int)

Allows the execution of the gesture 'move' on the screen.

public void Move(int locationX, int locationY)

Parameters

locationX int

The x coordinate relative to the view port.

locationY int

The y coordinate relative to the view port.

Scroll(ICoordinates, int, int)

Creates a scroll gesture that starts on a particular screen location.

public void Scroll(ICoordinates where, int offsetX, int offsetY)

Parameters

where ICoordinates

The ICoordinates object representing the location on the screen where the scroll starts, usually an IWebElement.

offsetX int

The x coordinate relative to the view port.

offsetY int

The y coordinate relative to the view port.

Scroll(int, int)

Creates a scroll gesture for a particular x and y offset.

public void Scroll(int offsetX, int offsetY)

Parameters

offsetX int

The horizontal offset relative to the view port.

offsetY int

The vertical offset relative to the view port.

SingleTap(ICoordinates)

Allows the execution of single tap on the screen, analogous to click using a Mouse.

public void SingleTap(ICoordinates where)

Parameters

where ICoordinates

The ICoordinates object representing the location on the screen, usually an IWebElement.

Up(int, int)

Allows the execution of the gesture 'up' on the screen. It is typically the last of a sequence of touch gestures.

public void Up(int locationX, int locationY)

Parameters

locationX int

The x coordinate relative to the view port.

locationY int

The y coordinate relative to the view port.