adamdriscoll/selenium-powershell

Difficulties to setup proxy

Rostes opened this issue · 0 comments

Hi,

I try to setup a proxy with the following code.

$proxy = New-Object OpenQA.Selenium.Proxy
$proxy.HttpProxy = 'http://myproxy:22225'
$proxy.SocksProxy = 'http://myproxy:22225'
$proxy.SocksUserName = 'user'
$proxy.SocksPassword = 'pwd'

$firefoxOptions = New-Object OpenQA.Selenium.Firefox.FirefoxOptions 
$firefoxOptions.Proxy = $proxy

$Driver = Start-SeFirefox -Arguments $firefoxOptions

But when I open the Selenium browser window the proxy is still setup by default.

Any idea?

Thanks,