ChromeDriver error “unknown error: cannot get automation extension”

后端 未结 15 2172
星月不相逢
星月不相逢 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条回答
  •  萌比男神i
    2020-12-11 00:31

    Try to use Webdrivermanager from

    io.github.bonigarcia library

    It will automatically load the latest version of your's webdriver and so you will not need to update it from time to time. Just call for example:

    ChromeDriverManager.getInstance().setup();
    

    before calling the webdriver itself to get the latest version of ChromeDriver.

提交回复
热议问题