Search code examples
google-chromeselenium-webdrivercucumber

How to fix chrome v111.x issue with selenium webdriver?


i didn't execute my tests for some days, today i wanted to execute them. but when i execute i have a blank white page, it doesn't go to the browser. Can anyone tell me how to fix so?

selenium returns me a white blank page without going to web site


Solution

  • ChromeOptions chromeOptions = new ChromeOptions();
    chromeOptions.addArguments("--start-maximized");
    chromeOptions.addArguments("--remote-allow-origins=*"); //<-this is the fix
    Configuration.browserCapabilities = chromeOptions; //(for Selenide, for example)