Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Touch.php

class Touch

WebDriver\Touch class

@package WebDriver

@method void click($jsonElement) Single tap on the touch enabled device. @method void doubleclick($jsonElement) Double tap on the touch screen using finger motion events. @method void down($jsonCoordinates) Finger down on the screen. @method void flick($json) Flick on the touch screen using finger motion events. @method void longclick($jsonElement) Long press on the touch screen using finger motion events. @method void move($jsonCoordinates) Finger move on the screen. @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). @method void up($jsonCoordinates) Finger up on the screen.

Hierarchy

  • class \WebDriver\AbstractWebDriver
    • class \WebDriver\Touch extends \WebDriver\AbstractWebDriver

Expanded class hierarchy of Touch

2 string references to 'Touch'
Cache::copyTo in vendor/composer/composer/src/Composer/Cache.php
Copy a file out of the cache
Filesystem::copy in vendor/symfony/filesystem/Filesystem.php
Copies a file.

File

vendor/lullabot/php-webdriver/lib/WebDriver/Touch.php, line 28

Namespace

WebDriver
View source
class Touch extends AbstractWebDriver {
    
    /**
     * {@inheritdoc}
     */
    protected function methods() {
        return array(
            'click' => array(
                'POST',
            ),
            'doubleclick' => array(
                'POST',
            ),
            'down' => array(
                'POST',
            ),
            'flick' => array(
                'POST',
            ),
            'longclick' => array(
                'POST',
            ),
            'move' => array(
                'POST',
            ),
            'scroll' => array(
                'POST',
            ),
            'up' => array(
                'POST',
            ),
        );
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
AbstractWebDriver::$curlService private property Curl service
AbstractWebDriver::$transientOptions private property Transient options
AbstractWebDriver::$url protected property URL
AbstractWebDriver::assertSerializable private function Sanity check
AbstractWebDriver::curl protected function Curl request to webdriver server.
AbstractWebDriver::getCurlService public function Get curl service
AbstractWebDriver::getRequestMethod private function Get default HTTP request method for a given WebDriver command
AbstractWebDriver::getTransientOptions public function
AbstractWebDriver::getURL public function Returns URL to Selenium server
AbstractWebDriver::obsoleteMethods protected function Return array of obsolete method names and corresponding HTTP request methods 4
AbstractWebDriver::offsetGet private function Extract value from result
AbstractWebDriver::setCurlService public function Set curl service
AbstractWebDriver::setTransientOptions public function Set transient options
AbstractWebDriver::__call public function Magic method that maps calls to class methods to execute WebDriver commands 1
AbstractWebDriver::__construct public function Constructor 3
AbstractWebDriver::__toString public function Magic method which returns URL to Selenium server
Touch::methods protected function Return array of supported method names and corresponding HTTP request methods Overrides AbstractWebDriver::methods
RSS feed
Powered by Drupal