Here is the code to replicate the issue. This was working fine till chromedriver 114 but it broke as soon as chrome browser got upgraded to 116.
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import io.github.bonigarcia.wdm.WebDriverManager;
public class ChromeTest {
public static void main(String args[]) {
WebDriverManager.chromedriver().setup();
WebDriver driver = new ChromeDriver();
driver.get("https://www.google.com/");
String title = driver.getTitle();
System.out.println(title);
driver.quit();
}
}
The error shows that the Library is unable access the version file for 116
Please use Latest version of WebDriverManager. WDM version 5.4.1 has resolved this issue for me. Google has release new Chrome flavor that specifically targets web app testing and automation use cases which means Chrome Driver download URL has changed from chrome version 115
Reference: https://developer.chrome.com/blog/chrome-for-testing/
WebDriver download URL : https://googlechromelabs.github.io/chrome-for-testing/