I am automating a chromium application using selenium webdriver. These are my configuration settings:
System.setProperty("webdriver.chrome.driver", "chromedriver.exe");
ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.addArguments("--url=application url");
chromeOptions.setBinary("application exe file");
chromeOptions.addArguments("--ignore-certificate-errors");
chromeOptions.addArguments("--remote-debugging-port=8000"); WebDriver
driver = new ChromeDriver(chromeOptions);
This code launches the chromium application successfully. I've confirmed that port 8000 is listening and able to get chromium application object on chrome browser.
But I am getting the exception below:
Starting ChromeDriver 2.16.333243 (0bfa1d3575fc1044244f21ddb82bf870944ef961) on port 18739 Only local connections are allowed. FAILED CONFIGURATION: @BeforeMethod setUp org.openqa.selenium.WebDriverException: chrome not reachable