src/ElementResolver.php
protected function findById($selector)
    {
        if (preg_match('/^#[\w\-:]+$/', $selector)) {
            return $this->driver->findElement(WebDriverBy::id(substr($selector, 1)));
        }
    }
protected function findById($selector)
    {
        if (preg_match('/^#[\w\-:]+$/', $selector)) {
            return $this->driver->findElement(WebDriverBy::id(substr($selector, 1)));
        }
    }
protected function findById ( $ selector ) { if ( preg_match ( '/^#[\w\-:]+$/' , $ selector ) ) { return $ this -> driver -> findElement ( WebDriverBy :: id ( substr ( $ selector , 1 ) ) ) ; } }
Attempt to find the selector by ID.

@param  string  $selector
@return \Facebook\WebDriver\Remote\RemoteWebElement|null
Attempt to find the selector by ID .