RE: How to set proxy for FF WebDriver?

Answered

Hi,
I try this code  when  start a FF WebDriver, however it doesn’t work.Can you tell me how  to set proxy for FF WebDriver? many thanks


FirefoxProfile myprofile = profile.getProfile("profileQA");

myprofile.setPreference("network.proxy.type", 1);

myprofile.setPreference("http://proxy.myweb.com/", 8083);

Young Train Asked on September 26, 2014 in Selenium WebDriver.
Add Comment
2 Answers

Hi Young,

Below links may useful for your query.

http://www.toolsqa.com/selenium-webdriver/http-proxy-authentication/

http://stackoverflow.com/questions/2887978/webdriver-and-proxy-server-for-firefox

http://stackoverflow.com/questions/14235802/how-to-set-auto-detect-proxy-settings-in-selenium-webdriver-using-java

http://seleniumworks.blogspot.in/2013/02/how-to-set-proxies-with-username-and.html

Doctor Answered on September 27, 2014.

He knows the answer but asked…!!!. Nice work Rocky.

on September 28, 2014.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.