views:

247

answers:

2

Hi, are there any ways to set firefox's proxy settings? I found here information about FoxyProxy but when Selenium works, plugins are unactivated in window.

A: 

Preferences -> Advanced -> Network -> Connection (Configure how Firefox connects to the Internet)

David Baron
I know this. When Selenium runs firefox window for work the connection tab with proxies is empty.
Ockonal
A: 

Look at documentation page http://seleniumhq.org/docs/09_webdriver.html

Tweaking an existing Firefox profile

You need to change "network.proxy.http" & "network.proxy.http_port" profile settings.

FirefoxProfile profile = new FirefoxProfile();
profile.addAdditionalPreference("network.proxy.http", "localhost");
profile.addAdditionalPreference("network.proxy.http_port", "3128");
WebDriver driver = new FirefoxDriver(profile);
SSH