How to setup Selenium proxy with Java-Cucumber?
Hey Ian,
To setup Selenium proxy with Java-Cucumber, you can refer to the sample code snippet below:
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
capabilities.setCapability("chrome.switches", Arrays.asList("--proxy-server=http://user:[email protected]:8080"));
WebDriver driver = new ChromeDriver(capabilities);