src/ElementResolver.php
/**
     * Attempt to find the selector by ID.
     *
     * @param  string  $selector
     * @return \Facebook\WebDriver\Remote\RemoteWebElement|null
     */
Attempt to find the selector by ID.
Attempt to find the selector by ID .
protected function findById($selector)
    {
        if (Str::startsWith($selector, '#')) {
            return $this->driver->findElement(WebDriverBy::id(substr($selector, 1)));
        }
    }
protected function findById ( $ selector ) { if ( Str :: startsWith ( $ selector , '#' ) ) { return $ this -> driver -> findElement ( WebDriverBy :: id ( substr ( $ selector , 1 ) ) ) ; } }
Attempt to find the selector by ID.
Attempt to find the selector by ID .