public function element(string $selector): ?Element
    {
        $element = $this->resolver->find($selector);
        return self::convertElement($element, $this->driver);
    }
public function element(string $selector): ?Element
    {
        $element = $this->resolver->find($selector);
        return self::convertElement($element, $this->driver);
    }
public function element ( string $ selector ) : ? Element { $ element = $ this -> resolver -> find ( $ selector ) ; return self :: convertElement ( $ element , $ this -> driver ) ; }
Get the element matching the given selector.

@param string $selector

@return ?Element
Get the element matching the given selector .