public function elements(string $selector): array
    {
        $elements = $this->resolver->all($selector);

        array_walk($elements, function (&$element) {
            $element = self::convertElement($element, $this->driver);
        });

        return $elements;
    }
public function elements(string $selector): array
    {
        $elements = $this->resolver->all($selector);

        array_walk($elements, function (&$element) {
            $element = self::convertElement($element, $this->driver);
        });

        return $elements;
    }
public function elements ( string $ selector ) : array { $ elements = $ this -> resolver -> all ( $ selector ) ; array_walk ( $ elements , function ( & $ element ) { $ element = self :: convertElement ( $ element , $ this -> driver ) ; } ) ; return $ elements ; }
Get all of the elements matching the given selector.

@param string $selector

@return Element[]
Get all of the elements matching the given selector .