Last modified: 2014-10-19 17:44:09 UTC
It would be really nice for selenium tests to be able to set a proxy for the browser to use. This would help for running security testing, as well as more easily capturing exactly what the tests send/receive for debugging.
Maybe it supports HTTP_PROXY and HTTPS_PROXY already?
You can set that, but that uses the proxy for some Ruby (watir?) connection. The requests are restful requests to localhost:7055. But not for the web requests to MediaWiki.
Well is it possible for whatever browser is picked in the environmental variable could use a specific forward proxy?
https://code.google.com/p/selenium/wiki/FrequentlyAskedQuestions#Q%3a_I_need_to_use_a_proxy._How_do_I_configure_that? Q: I need to use a proxy. How do I configure that? A: Proxy configuration is done via the org.openqa.selenium.Proxy class like so: Proxy proxy = new Proxy(); proxy.setProxyAutoconfigUrl("http://youdomain/config"); // We use firefox as an example here. DesiredCapabilities capabilities = DesiredCapabilities.firefox(); capabilities.setCapability(CapabilityType.PROXY, proxy); // You could use any webdriver implementation here WebDriver driver = new FirefoxDriver(capabilities);
I'll give this a try in a while: http://krosinski.blogspot.co.uk/2012/11/selenium-firefox-webdriver-and-proxies.html
Not sure how to edit the change the WMF to include a setting to switch the use of proxy settings on our off but the capability is there. browser.preferences.proxy.use_http=1