src/ElementResolver.php
public function all($selector)
    {
        try {
            return $this->driver->findElements(
                WebDriverBy::cssSelector($this->format($selector))
            );
        } catch (Exception $e) {
            //
        }

        return [];
    }
public function all($selector)
    {
        try {
            return $this->driver->findElements(
                WebDriverBy::cssSelector($this->format($selector))
            );
        } catch (Exception $e) {
            //
        }

        return [];
    }
public function all ( $ selector ) { try { return $ this -> driver -> findElements ( WebDriverBy :: cssSelector ( $ this -> format ( $ selector ) ) ) ; } catch ( Exception $ e ) { // } return [ ] ; }
Find the elements by the given selector or return an empty array.

@param  string  $selector
@return \Facebook\WebDriver\Remote\RemoteWebElement[]
Find the elements by the given selector or return an empty array .