src/Browser/BrowserDriverBuilder.php
public function withProxySettings($proxySettings)
    {
        if (!empty($proxySettings)) {
            $this->extraCapabilities[WebDriverCapabilityType::PROXY] = [
                'proxyType' => $proxySettings['proxyType'],
                'httpProxy' => $proxySettings['httpProxy'],
                'sslProxy' => $proxySettings['sslProxy'],
            ];
        }
        return $this;
    }
public function withProxySettings($proxySettings)
    {
        if (!empty($proxySettings)) {
            $this->extraCapabilities[WebDriverCapabilityType::PROXY] = [
                'proxyType' => $proxySettings['proxyType'],
                'httpProxy' => $proxySettings['httpProxy'],
                'sslProxy' => $proxySettings['sslProxy'],
            ];
        }
        return $this;
    }
public function withProxySettings ( $ proxySettings ) { if ( ! empty ( $ proxySettings ) ) { $ this -> extraCapabilities [ WebDriverCapabilityType :: PROXY ] = [ 'proxyType' => $ proxySettings [ 'proxyType' ] , 'httpProxy' => $ proxySettings [ 'httpProxy' ] , 'sslProxy' => $ proxySettings [ 'sslProxy' ] , ] ; } return $ this ; }
Sets the given proxy settings and returns self.

@param array $proxySettings

@return $this
Sets the given proxy settings and returns self .