selenium icon indicating copy to clipboard operation
selenium copied to clipboard

http proxy use questions

Open CarpCap opened this issue 6 years ago • 2 comments

🚀 Feature Proposal

Questions background

http proxy use can only be set in new ChromeDriver()

ChromeOptions chromeOptions = new ChromeOptions();
        chromeOptions.addArguments("-headless");
        Proxy proxy = new Proxy();
        chromeOptions.setProxy(proxy);
        //new webDriver
        webDriver = new ChromeDriver(chromeOptions);

Questions

How to set the proxy after the new ChromeDriver() event occurs

CarpCap avatar Nov 30 '20 06:11 CarpCap

You can't set the proxy after the browser is launched.

Please send questions to the selenium user group

For issues please provide a concise reproducible test case and describe what results you are seeing and what results you expect.

See CONTRIBUTING.md

AutomatedTester avatar Nov 30 '20 13:11 AutomatedTester

Thanks for your answer, it is very helpful to me

CarpCap avatar Dec 24 '20 05:12 CarpCap