ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.addArguments("--start-maximized");
chromeOptions.addArguments("--remote-allow-origins=*"); //<-this is the fix
Configuration.browserCapabilities = chromeOptions; //(for Selenide, for example)
1条答案
按热度按时间56lgkhnf1#