I have tried to launch chromedriver using selenium after instantiating driver.
I am using chrome browser version 111.0.5563.41.
I have tried to launch chromedriver using selenium after instantiating driver.
I am using chrome browser version 111.0.5563.41.
Please try with the solution below.
ChromeOptions opt = new ChromeOptions();
opt.addArguments("--remote-allow-origins=*");
// Launching the browser
driver=new ChromeDriver(opt);
Typically, ChromeOptions
used for a headless run. However, the new chrome version 111 is not compatible with the latest Selenium version even for 4.8, so for the time being this is an alternative solution.