Chris@14: Chris@14: */ Chris@14: Chris@14: namespace WebDriver; Chris@14: Chris@14: /** Chris@14: * WebDriver\Touch class Chris@14: * Chris@14: * @package WebDriver Chris@14: * Chris@14: * @method void click($jsonElement) Single tap on the touch enabled device. Chris@14: * @method void down($jsonCoordinates) Finger down on the screen. Chris@14: * @method void up($jsonCoordinates) Finger up on the screen. Chris@14: * @method void move($jsonCoordinates) Finger move on the screen. Chris@14: * @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@14: * @method void doubleclick($jsonElement) Double tap on the touch screen using finger motion events. Chris@14: * @method void longclick($jsonElement) Long press on the touch screen using finger motion events. Chris@14: * @method void flick($json) Flick on the touch screen using finger motion events. Chris@14: */ Chris@14: final class Touch extends AbstractWebDriver Chris@14: { Chris@14: /** Chris@14: * {@inheritdoc} Chris@14: */ Chris@14: protected function methods() Chris@14: { Chris@14: return array( Chris@14: 'click' => array('POST'), Chris@14: 'down' => array('POST'), Chris@14: 'up' => array('POST'), Chris@14: 'move' => array('POST'), Chris@14: 'scroll' => array('POST'), Chris@14: 'doubleclick' => array('POST'), Chris@14: 'longclick' => array('POST'), Chris@14: 'flick' => array('POST'), Chris@14: ); Chris@14: } Chris@14: }