public function withProxySettings($proxySettings)
    {
        if (!empty($proxySettings)) {
            $this->extraCapabilities[WebDriverCapabilityType::PROXY] = [
                'proxyType' => $proxySettings['proxyType'],
                'httpProxy' => $proxySettings['httpProxy'],
                'sslProxy' => $proxySettings['sslProxy'],
            ];
        }
        return $this;
    }