3 * Copyright 2011-2017 Anthon Pang. All Rights Reserved.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
19 * @author Anthon Pang <apang@softwaredevelopment.ca>
25 * WebDriver\Touch class
29 * @method void click($jsonElement) Single tap on the touch enabled device.
30 * @method void down($jsonCoordinates) Finger down on the screen.
31 * @method void up($jsonCoordinates) Finger up on the screen.
32 * @method void move($jsonCoordinates) Finger move on the screen.
33 * @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).
34 * @method void doubleclick($jsonElement) Double tap on the touch screen using finger motion events.
35 * @method void longclick($jsonElement) Long press on the touch screen using finger motion events.
36 * @method void flick($json) Flick on the touch screen using finger motion events.
38 final class Touch extends AbstractWebDriver
43 protected function methods()
46 'click' => array('POST'),
47 'down' => array('POST'),
48 'up' => array('POST'),
49 'move' => array('POST'),
50 'scroll' => array('POST'),
51 'doubleclick' => array('POST'),
52 'longclick' => array('POST'),
53 'flick' => array('POST'),