Interface ITouchScreen
Interface representing basic touch screen operations.
public interface ITouchScreen
Methods
DoubleTap(ICoordinates)
Allows the execution of double tap on the screen, analogous to click using a Mouse.
void DoubleTap(ICoordinates where)
Parameters
where
ICoordinatesThe 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.
void Down(int locationX, int locationY)
Parameters
locationX
intThe x coordinate relative to the view port.
locationY
intThe 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.
void Flick(ICoordinates where, int offsetX, int offsetY, int speed)
Parameters
where
ICoordinatesThe ICoordinates object representing the location on the screen where the scroll starts, usually an IWebElement.
offsetX
intThe x offset relative to the viewport.
offsetY
intThe y offset relative to the viewport.
speed
intThe speed in pixels per second.
Flick(int, int)
Creates a flick gesture for the current view.
void Flick(int speedX, int speedY)
Parameters
speedX
intThe horizontal speed in pixels per second.
speedY
intThe vertical speed in pixels per second.
LongPress(ICoordinates)
Allows the execution of a long press gesture on the screen.
void LongPress(ICoordinates where)
Parameters
where
ICoordinatesThe ICoordinates object representing the location on the screen, usually an IWebElement.
Move(int, int)
Allows the execution of the gesture 'move' on the screen.
void Move(int locationX, int locationY)
Parameters
locationX
intThe x coordinate relative to the view port.
locationY
intThe y coordinate relative to the view port.
Scroll(ICoordinates, int, int)
Creates a scroll gesture that starts on a particular screen location.
void Scroll(ICoordinates where, int offsetX, int offsetY)
Parameters
where
ICoordinatesThe ICoordinates object representing the location on the screen where the scroll starts, usually an IWebElement.
offsetX
intThe x coordinate relative to the view port.
offsetY
intThe y coordinate relative to the view port.
Scroll(int, int)
Creates a scroll gesture for a particular x and y offset.
void Scroll(int offsetX, int offsetY)
Parameters
offsetX
intThe horizontal offset relative to the view port.
offsetY
intThe vertical offset relative to the view port.
SingleTap(ICoordinates)
Allows the execution of single tap on the screen, analogous to click using a Mouse.
void SingleTap(ICoordinates where)
Parameters
where
ICoordinatesThe 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.
void Up(int locationX, int locationY)