After chrome browser upgraded to 73.0 selenium test are not getting executed in bamboo build server and working fine when executed locally. Upgraded compatible version of chromeDriver 2.46. Still getting error:
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
[1554111197.266][WARNING]: Timed out connecting to Chrome, retrying...
Apr 01, 2019 5:33:18 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
Force Stop build feature is enabled for current plan. Either Bamboo has detected the build has hung or it has been manually stopped.
Below is code used to launch browser:
public void selectBrowser(String browser)
{
System.out.println(System.getProperty("os.name"));
if (System.getProperty("os.name").contains("Window")) {
if (browser.equals("chrome")) {
System.out.println(System.getProperty("user.dir"));
System.setProperty("webdriver.chrome.driver",
System.getProperty("user.dir") + "/drivers/chromedriver.exe");
ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.addArguments("--verbose");
chromeOptions.addArguments("--whitelisted-ips=");
chromeOptions.setPageLoadStrategy(PageLoadStrategy.NONE);
driver = new ChromeDriver(ChromeOptions);
}
}
}
Error displayed in bamboo during test execution: