I am looking for how to change foxyproxy's settings in Selenium WebDriver from Java. My code is the following currently.
FirefoxProfile profile = new FirefoxProfile();
File foxyproxy = new File("path to foxyproxy.xpi");
try {
profile.addExtension(foxyproxy);
} catch (IOException e) {
}
File binaryfile = new File("path to firefox.exe");
FirefoxBinary profile = new FirefoxBinary(binaryfile);
WebDriver driver = new WebDriver(binary, profile);
...
I could check that addExtension() is no problem when selenium was executed.
But, After that I have no idea to change foxyproxy's settings. I would like to set some proxy's rule.
For example, can I use setPreference() by using a specified key and value for foxyproxy?
profile.setPreference("key", "value");
If you have a solution, could you instruct me?
Thank you for your attention.