ChromeDriver error “unknown error: cannot get automation extension”

后端 未结 15 2171
星月不相逢
星月不相逢 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:24

    Thanks for this -- it helped me after so much R&D

    cannot-get-automation-extension

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

提交回复
热议问题