RemoteTouchScreen
in package
implements
WebDriverTouchScreen
Execute touch commands for RemoteWebDriver.
Table of Contents
Interfaces
- WebDriverTouchScreen
- Interface representing touch screen operations.
Properties
Methods
- __construct() : mixed
- doubleTap() : RemoteTouchScreen
- Double tap on the touch screen using finger motion events.
- down() : RemoteTouchScreen
- Finger down on the screen.
- flick() : RemoteTouchScreen
- Flick on the touch screen using finger motion events. Use this flick command if you don't care where the flick starts on the screen.
- flickFromElement() : RemoteTouchScreen
- Flick on the touch screen using finger motion events.
- longPress() : RemoteTouchScreen
- Long press on the touch screen using finger motion events.
- move() : RemoteTouchScreen
- Finger move on the screen.
- scroll() : RemoteTouchScreen
- 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.
- scrollFromElement() : RemoteTouchScreen
- Scroll on the touch screen using finger based motion events. Use this command to start scrolling at a particular screen location.
- tap() : RemoteTouchScreen
- Single tap on the touch enabled device.
- up() : RemoteTouchScreen
- Finger up on the screen.
Properties
$executor
private
RemoteExecuteMethod
$executor
Methods
__construct()
public
__construct(RemoteExecuteMethod $executor) : mixed
Parameters
- $executor : RemoteExecuteMethod
doubleTap()
Double tap on the touch screen using finger motion events.
public
doubleTap(WebDriverElement $element) : RemoteTouchScreen
Parameters
- $element : WebDriverElement
Return values
RemoteTouchScreen —The instance.
down()
Finger down on the screen.
public
down(int $x, int $y) : RemoteTouchScreen
Parameters
- $x : int
- $y : int
Return values
RemoteTouchScreen —The instance.
flick()
Flick on the touch screen using finger motion events. Use this flick command if you don't care where the flick starts on the screen.
public
flick(int $xspeed, int $yspeed) : RemoteTouchScreen
Parameters
- $xspeed : int
- $yspeed : int
Return values
RemoteTouchScreen —The instance.
flickFromElement()
Flick on the touch screen using finger motion events.
public
flickFromElement(WebDriverElement $element, int $xoffset, int $yoffset, int $speed) : RemoteTouchScreen
Parameters
- $element : WebDriverElement
- $xoffset : int
- $yoffset : int
- $speed : int
Return values
RemoteTouchScreen —The instance.
longPress()
Long press on the touch screen using finger motion events.
public
longPress(WebDriverElement $element) : RemoteTouchScreen
Parameters
- $element : WebDriverElement
Return values
RemoteTouchScreen —The instance.
move()
Finger move on the screen.
public
move(int $x, int $y) : RemoteTouchScreen
Parameters
- $x : int
- $y : int
Return values
RemoteTouchScreen —The instance.
scroll()
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.
public
scroll(int $xoffset, int $yoffset) : RemoteTouchScreen
Parameters
- $xoffset : int
- $yoffset : int
Return values
RemoteTouchScreen —The instance.
scrollFromElement()
Scroll on the touch screen using finger based motion events. Use this command to start scrolling at a particular screen location.
public
scrollFromElement(WebDriverElement $element, int $xoffset, int $yoffset) : RemoteTouchScreen
Parameters
- $element : WebDriverElement
- $xoffset : int
- $yoffset : int
Return values
RemoteTouchScreen —The instance.
tap()
Single tap on the touch enabled device.
public
tap(WebDriverElement $element) : RemoteTouchScreen
Parameters
- $element : WebDriverElement
Return values
RemoteTouchScreen —The instance.
up()
Finger up on the screen.
public
up(int $x, int $y) : RemoteTouchScreen
Parameters
- $x : int
- $y : int
Return values
RemoteTouchScreen —The instance.