src/ElementResolver.php
/**
     * Find an element by the given selector or throw an exception.
     *
     * @param  string  $selector
     * @return \Facebook\WebDriver\Remote\RemoteWebElement
     */
Find an element by the given selector or throw an exception.
Find an element by the given selector or throw an exception .
public function findOrFail($selector)
    {
        return $this->driver->findElement(
            WebDriverBy::cssSelector($this->format($selector))
        );
    }
public function findOrFail ( $ selector ) { return $ this -> driver -> findElement ( WebDriverBy :: cssSelector ( $ this -> format ( $ selector ) ) ) ; }
Find an element by the given selector or throw an exception.
Find an element by the given selector or throw an exception .