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

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

        return $elements;
    }