FIX FOR: Invalid Status code=403 text=Forbidden in Selenium ChromeDriver

Опубликовано: 21 Ноябрь 2024
на канале: The Testers Family
13,001
397

After 110 version of ChromeDriver, there is an error:
java.io.IOException: Invalid Status code=403 text=Forbidden
This could be fixed by inserting these Chrome Options:

ChromeOptions options = new ChromeOptions();
options.addArguments("--remote-allow-origins=*");

Let me know in the comments if this helped!