My requirement is for opening my project site it requires two different proxies. How to handle it with Selenium Webdriver?
Please help me.
You haven't mentioned what driver you are using(Firefox, Chrome, ..)but this is how you do it for Firefox:
FirefoxProfile profile = new FirefoxProfile();
profile.setEnableNativeEvents(true);
profile.setPreference("network.proxy.http_port", proxyPort);
profile.setPreference("network.proxy.ssl", proxyHost);
profile.setPreference("network.proxy.ssl_port", proxyPort);
FirefoxDriver driver = new FirefoxDriver(profile);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.