Detect proxy settings in FirefoxDriver using Java

I have a requirement where am setting a proxy while creating my FirefoxDriver instance but during the process, the proxy will change as am using some third party residential IP solution which changes every minute.

Am trying to figure out the way if I can detect every time the proxy changes.

This is how am setting up the proxy:

String proxy = "My third party proxy:80";

DesiredCapabilities cap = new DesiredCapabilities();

cap.setCapability(FirefoxDriver.PROFILE, myProfile);

cap.setCapability(CapabilityType.PROXY, proxy);

WebDriver driver = new FirefoxDriver(cap);

I want something like:


Read More »

By: StackOverFlow - Monday, 12 March

Related Posts