private function typeBySelectorType($type, $value, $name, $clear = false)
    {
        $element = $this->wd->findElement(WebDriverBy::{$type}($name));

        if ($clear) {
            $element->clear();
        }

        $element->sendKeys($value);

        return $this;
    }