Chris@0: Chris@0: */ Chris@0: Chris@0: namespace WebDriver; Chris@0: Chris@0: /** Chris@0: * WebDriver\Touch class Chris@0: * Chris@0: * @package WebDriver Chris@0: * Chris@0: * @method void click($jsonElement) Single tap on the touch enabled device. Chris@0: * @method void down($jsonCoordinates) Finger down on the screen. Chris@0: * @method void up($jsonCoordinates) Finger up on the screen. Chris@0: * @method void move($jsonCoordinates) Finger move on the screen. Chris@0: * @method void scroll($jsonCoordinates) Scroll on the touch screen using finger based motion events. Coordinates are either absolute, or relative to a element (if specified). Chris@0: * @method void doubleclick($jsonElement) Double tap on the touch screen using finger motion events. Chris@0: * @method void longclick($jsonElement) Long press on the touch screen using finger motion events. Chris@0: * @method void flick($json) Flick on the touch screen using finger motion events. Chris@0: */ Chris@0: final class Touch extends AbstractWebDriver Chris@0: { Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: */ Chris@0: protected function methods() Chris@0: { Chris@0: return array( Chris@0: 'click' => array('POST'), Chris@0: 'down' => array('POST'), Chris@0: 'up' => array('POST'), Chris@0: 'move' => array('POST'), Chris@0: 'scroll' => array('POST'), Chris@0: 'doubleclick' => array('POST'), Chris@0: 'longclick' => array('POST'), Chris@0: 'flick' => array('POST'), Chris@0: ); Chris@0: } Chris@0: }