I am trying to run a Java webapp hosted on tomcat that will run selenium / chrome web driver.
However when you try to launch the chromedriver you get a 500 internal server error
java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;)V org.openqa.selenium.remote.service.DriverService.checkExecutable(DriverService.java:137)
I've tried multiple variants to load the drivers as well as changing to firefoxdriver and RemoteWebDriver but i still get the same issue.
I have placed the chromeDriver and Chrome.exe within web pages/web-inf/lib. Also System.setProperty("webdriver.chrome.driver","chromedriver.exe");
But nothing changes.
Is this even possible?
.exe
extension. – JeffC