Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Firefox Driver in Selenium 2 work to slow when is set the proxy settings #3020

Closed
lukeis opened this issue Mar 3, 2016 · 7 comments
Closed

Comments

@lukeis
Copy link
Member

lukeis commented Mar 3, 2016

Originally reported on Google Code with ID 3020

I have problems with the firefox driver when I set the proxy settings. The settings
is properly settled, but is working to slow and the firefox driver can't continue the
program. My purpose is to open google then type some search criteria, to submit this
criteria and to open one of the result pages that is show. Everything is good when
I don't use the proxy. Here is my code for proxy:

       FirefoxProfile profile = new FirefoxProfile();
       profile.setPreference("network.proxy.type", 1);
       profile.setPreference("network.proxy.http","some Proxy");
       profile.setPreference("network.proxy.http_port", port); 
       driver = new FirefoxDriver(profile);

Reported by petkopara on 2011-12-07 17:23:55

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by barancev on 2011-12-08 07:14:33

  • Labels added: Component-WebDriver, Browser-Firefox, Performance

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Issue 2995 has been merged into this issue.

Reported by barancev on 2012-05-05 13:54:53

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Some applies if we set a proxy capability when using Selenium Grid. I use the following
code together with browsermob API:

String PROXY = SELENIUM_HUB_IP + ":" + proxyPort;
Proxy proxy = new Proxy();
proxy.setHttpProxy(PROXY);

DesiredCapabilities cap = DesiredCapabilities.firefox();
cap.setCapability("platform", Platform.WINDOWS);
cap.setCapability("version", "9");
cap.setCapability("proxy", proxy);

driver = new RemoteWebDriver(new URL("http://" + SELENIUM_HUB_IP + ":4444/wd/hub"),
cap);

Reported by rdekleijnaspider on 2012-06-26 14:59:20

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

If Firefox is slow when using a proxy, that's an issue with Firefox, not the driver.
You don't mention which proxy you're using. If it's the selenium server itself you
may find #3498 a more relevant issue to follow.

Marking as NotFeasible: there's nothing sane we can do.

Reported by simon.m.stewart on 2012-06-27 06:49:15

  • Status changed: NotFeasible

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I have a Selenium Grid set up.

HUB: Ubuntu machine with Selenium server 2.24.1 and browsermob proxy
Nodes: windows machines with Selenium 2.24.1

As far as I could see, it also happened in other browsers, such as Chrome and Internet
Explorer.

The test execution is really fast if I don't use a proxy.
With proxy it takes almost 2 minutes.
Without proxy it takes 25 seconds.


Reported by rdekleijnaspider on 2012-06-27 07:34:10

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

ahh, I don't use the -trustAllSSLCertificates  parameter.

Reported by rdekleijnaspider on 2012-06-27 07:37:23

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by luke.semerau on 2015-09-17 18:14:23

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 3, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant