如何修复chrome v111.x与 selenium webdriver的问题?

vu8f3i0k  于 2023-03-21  发布在  Go
关注(0)|答案(1)|浏览(152)

我没有执行我的测试了一些天,今天我想执行他们。但当我执行我有一个空白的白色页,它不去浏览器。谁能告诉我如何解决呢?
selenium 返回我一个白色的空白页没有去网站

56lgkhnf

56lgkhnf1#

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

相关问题