Mercurial > hg > isophonics-drupal-site
comparison vendor/instaclick/php-webdriver/lib/WebDriver/Touch.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
1 <?php | |
2 /** | |
3 * Copyright 2011-2017 Anthon Pang. All Rights Reserved. | |
4 * | |
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 | |
8 * | |
9 * http://www.apache.org/licenses/LICENSE-2.0 | |
10 * | |
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. | |
16 * | |
17 * @package WebDriver | |
18 * | |
19 * @author Anthon Pang <apang@softwaredevelopment.ca> | |
20 */ | |
21 | |
22 namespace WebDriver; | |
23 | |
24 /** | |
25 * WebDriver\Touch class | |
26 * | |
27 * @package WebDriver | |
28 * | |
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. | |
37 */ | |
38 final class Touch extends AbstractWebDriver | |
39 { | |
40 /** | |
41 * {@inheritdoc} | |
42 */ | |
43 protected function methods() | |
44 { | |
45 return array( | |
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'), | |
54 ); | |
55 } | |
56 } |