C# Class OpenQA.Selenium.Remote.RemoteTouchScreen

Defines the interface through which the user can execute advanced touch screen interactions.
Inheritance: ITouchScreen
Mostrar archivo Open project: krosenvold/selenium-git-release-candidate Class Usage Examples

Public Methods

Method Description
DoubleTap ( ICoordinates where ) : void

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

Down ( int locationX, int locationY ) : void

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

Flick ( Interactions where, int offsetX, int offsetY, int speed ) : void

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

Flick ( int speedX, int speedY ) : void

Creates a flick gesture for the current view.

LongPress ( ICoordinates where ) : void

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

Move ( int locationX, int locationY ) : void

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

RemoteTouchScreen ( RemoteWebDriver driver ) : System

Initializes a new instance of the RemoteTouchScreen class.

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

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

Scroll ( int offsetX, int offsetY ) : void

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

SingleTap ( ICoordinates where ) : void

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

Up ( int locationX, int locationY ) : void

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

Method Details

DoubleTap() public method

Allows the execution of double tap on the screen, analogous to click using a Mouse.
public DoubleTap ( ICoordinates where ) : void
where ICoordinates The object representing the location on the screen, /// usually an .
return void

Down() public method

Allows the execution of the gesture 'down' on the screen. It is typically the first of a sequence of touch gestures.
public Down ( int locationX, int locationY ) : void
locationX int The x coordinate relative to the view port.
locationY int The y coordinate relative to the view port.
return void

Flick() public method

Creates a flick gesture for the current view starting at a specific location.
public Flick ( Interactions where, int offsetX, int offsetY, int speed ) : void
where Interactions The object representing the location on the screen /// where the scroll starts, usually an .
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.
return void

Flick() public method

Creates a flick gesture for the current view.
public Flick ( int speedX, int speedY ) : void
speedX int The horizontal speed in pixels per second.
speedY int The vertical speed in pixels per second.
return void

LongPress() public method

Allows the execution of a long press gesture on the screen.
public LongPress ( ICoordinates where ) : void
where ICoordinates The object representing the location on the screen, /// usually an .
return void

Move() public method

Allows the execution of the gesture 'move' on the screen.
public Move ( int locationX, int locationY ) : void
locationX int The x coordinate relative to the view port.
locationY int The y coordinate relative to the view port.
return void

RemoteTouchScreen() public method

Initializes a new instance of the RemoteTouchScreen class.
public RemoteTouchScreen ( RemoteWebDriver driver ) : System
driver RemoteWebDriver The for which the touch screen will be managed.
return System

Scroll() public method

Creates a scroll gesture that starts on a particular screen location.
public Scroll ( ICoordinates where, int offsetX, int offsetY ) : void
where ICoordinates The object representing the location on the screen /// where the scroll starts, usually an .
offsetX int The x coordinate relative to the view port.
offsetY int The y coordinate relative to the view port.
return void

Scroll() public method

Creates a scroll gesture for a particular x and y offset.
public Scroll ( int offsetX, int offsetY ) : void
offsetX int The horizontal offset relative to the view port.
offsetY int The vertical offset relative to the view port.
return void

SingleTap() public method

Allows the execution of single tap on the screen, analogous to click using a Mouse.
public SingleTap ( ICoordinates where ) : void
where ICoordinates The object representing the location on the screen, /// usually an .
return void

Up() public method

Allows the execution of the gesture 'up' on the screen. It is typically the last of a sequence of touch gestures.
public Up ( int locationX, int locationY ) : void
locationX int The x coordinate relative to the view port.
locationY int The y coordinate relative to the view port.
return void