Possible issue with Chromedriver 78, Selenium can not find web element of PDF opened in Chrome

后端 未结 9 1120
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-17 11:02

Until my google Chrome wasn\'t updated to version 78 my code worked fine. I also updated the chromedriver to version 78.0.3904.70. So I am not able anymore to find WebElemen

9条回答
  •  一向
    一向 (楼主)
    2020-12-17 11:19

    By adding the following argument I have solved my problem.

       ChromeOptions options = new ChromeOptions();
        options.addArguments("--disable-gpu");
        options.addArguments("--disable-extensions");
        options.setExperimentalOption("useAutomationExtension", false);
        options.addArguments("--window-size=1920,1080");
        options.merge(seleniumCapabilities);
        driver = new ChromeDriver(options);
    

提交回复
热议问题