ChromeDriver error “unknown error: cannot get automation extension”

后端 未结 15 2177
星月不相逢
星月不相逢 2020-12-10 23:43

Since the 7th of February all my tests are failing with the same error; the log entry reads:

RESPONSE MaximizeWindow unknown error: cannot get automation ext         


        
15条回答
  •  情歌与酒
    2020-12-11 00:43

    This could probably because the environment where you are running the tests is blocking all the third party extensions in chrome browser. Give it a try with disabling the extensions.

    something like below:

    ChromeOptions o = new ChromeOptions();
    o.addArguments("disable-extensions");
    o.addArguments("--start-maximized");
    WebDriver driver = new ChromeDriver(o);
    

提交回复
热议问题