public static function convertElement($element, RemoteWebDriver $driver)
    {
        if ($element instanceof RemoteWebElement) {
            return new self($element, $driver);
        }

        return $element;
    }
public static function convertElement($element, RemoteWebDriver $driver)
    {
        if ($element instanceof RemoteWebElement) {
            return new self($element, $driver);
        }

        return $element;
    }
public static function convertElement ( $ element , RemoteWebDriver $ driver ) { if ( $ element instanceof RemoteWebElement ) { return new self ( $ element , $ driver ) ; } return $ element ; }
Convert a standard element to one of our bespoke elements.

@param mixed $element The element to convert
@param RemoteWebDriver $driver The driver that contains this element

@return mixed
Convert a standard element to one of our bespoke elements .