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

Breadcrumb

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

class Shadow

WebDriver\Shadow class

@package WebDriver

Hierarchy

  • class \WebDriver\AbstractWebDriver
    • class \WebDriver\Container extends \WebDriver\AbstractWebDriver
      • class \WebDriver\Shadow extends \WebDriver\Container

Expanded class hierarchy of Shadow

Deprecated

by W3C WebDriver

File

vendor/lullabot/php-webdriver/lib/WebDriver/Shadow.php, line 21

Namespace

WebDriver
View source
class Shadow extends Container {
    const SHADOW_ROOT_ID = 'shadow-6066-11e4-a52e-4f735466cecf';
    
    /**
     * Shadow ID
     *
     * @var string
     */
    private $id;
    
    /**
     * {@inheritdoc}
     */
    protected function methods() {
        return array();
    }
    
    /**
     * Constructor
     *
     * @param string $url URL
     * @param string $id  shadow ID
     */
    public function __construct($url, $id) {
        parent::__construct($url);
        $this->id = $id;
    }
    
    /**
     * Get shadow ID
     *
     * @return string
     */
    public function getID() {
        return $this->id;
    }
    
    /**
     * {@inheritdoc}
     */
    protected function getIdentifierPath($identifier) {
        return sprintf('%s/element/%s', $this->url, $identifier);
    }

}

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::__toString public function Magic method which returns URL to Selenium server
Container::$strategies private property
Container::element public function Find element: /session/:sessionId/element (POST)
Find child element: /session/:sessionId/element/:id/element (POST)
Search for element on page, starting from the document root.
Container::elements public function Find elements: /session/:sessionId/elements (POST)
Find child elements: /session/:sessionId/element/:id/elements (POST)
Search for multiple elements on page, starting from the document root.
Container::locate public function Return JSON parameter for element / elements command
Container::makeElement protected function Factory method for elements
Container::parseArgs private function Parse arguments allowing either separate $using and $value parameters, or
as an array containing the JSON parameters
Container::__call public function Magic method that maps calls to class methods to execute WebDriver commands Overrides AbstractWebDriver::__call 1
Shadow::$id private property Shadow ID
Shadow::getID public function Get shadow ID
Shadow::getIdentifierPath protected function Get wire protocol URL for an identifier Overrides Container::getIdentifierPath
Shadow::methods protected function Return array of supported method names and corresponding HTTP request methods Overrides AbstractWebDriver::methods
Shadow::SHADOW_ROOT_ID constant
Shadow::__construct public function Constructor Overrides Container::__construct

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal