Open pcooke2002 opened 5 years ago
Double check and make sure that WINDOWS_CHROME_DRIVER is pointing to something that is actually there on your system. You might need to update it to a newer version of chrome driver as well....just in case there is an incompatibility between the version of Chrome you are using and the version of chromedriver in the project. You also might try not doing it headless just to get it to work.
Does Firefox work?
My system is windows 10, open jdk-11. I have chrome installed on the system. with basic "mvn clean install -X -e " I get
defined in file [C:\Users\l1pxc04\Downloads\bdd-demo-master\bdd-demo-master\target\test-classes\net\xeric\demos\pages\DemoPage.class]: Unsatisfied Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'demoPage' dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getWebDriver' defined in class path resource [net/xeric/demos/TestConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openqa.selenium.WebDriver]: Factory method 'getWebDriver' threw exception; nested exception is org.openqa.selenium.WebDriverException: unknown error: cannot find Chrome binary
When I add chrome to the from of the search path I get
Searching google indicate that TestConfig.java should have something like @Bean(destroyMethod = "quit") @Lazy @Scope("singleton") public WebDriver getWebDriver() { String driverPath = LINUX_CHROME_DRIVER; String osType = System.getProperty("os.name"); ChromeOptions options = null;
But I still cannot get it to lauch chrome on windows 10 using open jdk 11.