annotate vendor/instaclick/php-webdriver/lib/WebDriver/Touch.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents c75dbcec494b
children
rev   line source
Chris@0 1 <?php
Chris@0 2 /**
Chris@0 3 * Copyright 2011-2017 Anthon Pang. All Rights Reserved.
Chris@0 4 *
Chris@0 5 * Licensed under the Apache License, Version 2.0 (the "License");
Chris@0 6 * you may not use this file except in compliance with the License.
Chris@0 7 * You may obtain a copy of the License at
Chris@0 8 *
Chris@0 9 * http://www.apache.org/licenses/LICENSE-2.0
Chris@0 10 *
Chris@0 11 * Unless required by applicable law or agreed to in writing, software
Chris@0 12 * distributed under the License is distributed on an "AS IS" BASIS,
Chris@0 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Chris@0 14 * See the License for the specific language governing permissions and
Chris@0 15 * limitations under the License.
Chris@0 16 *
Chris@0 17 * @package WebDriver
Chris@0 18 *
Chris@0 19 * @author Anthon Pang <apang@softwaredevelopment.ca>
Chris@0 20 */
Chris@0 21
Chris@0 22 namespace WebDriver;
Chris@0 23
Chris@0 24 /**
Chris@0 25 * WebDriver\Touch class
Chris@0 26 *
Chris@0 27 * @package WebDriver
Chris@0 28 *
Chris@0 29 * @method void click($jsonElement) Single tap on the touch enabled device.
Chris@0 30 * @method void down($jsonCoordinates) Finger down on the screen.
Chris@0 31 * @method void up($jsonCoordinates) Finger up on the screen.
Chris@0 32 * @method void move($jsonCoordinates) Finger move on the screen.
Chris@0 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).
Chris@0 34 * @method void doubleclick($jsonElement) Double tap on the touch screen using finger motion events.
Chris@0 35 * @method void longclick($jsonElement) Long press on the touch screen using finger motion events.
Chris@0 36 * @method void flick($json) Flick on the touch screen using finger motion events.
Chris@0 37 */
Chris@0 38 final class Touch extends AbstractWebDriver
Chris@0 39 {
Chris@0 40 /**
Chris@0 41 * {@inheritdoc}
Chris@0 42 */
Chris@0 43 protected function methods()
Chris@0 44 {
Chris@0 45 return array(
Chris@0 46 'click' => array('POST'),
Chris@0 47 'down' => array('POST'),
Chris@0 48 'up' => array('POST'),
Chris@0 49 'move' => array('POST'),
Chris@0 50 'scroll' => array('POST'),
Chris@0 51 'doubleclick' => array('POST'),
Chris@0 52 'longclick' => array('POST'),
Chris@0 53 'flick' => array('POST'),
Chris@0 54 );
Chris@0 55 }
Chris@0 56 }