Problem was solved by upgrading gradle to 8.12 and removing bypass from chromeoptions that was added some time ago due to problem with headless test running: chromeOptions.addArguments("--headless=old");