ChromeDriver error “unknown error: cannot get automation extension”

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

    I had the same issue. Just downloaded the latest release of chromedriver and that solved the problem.

    https://sites.google.com/a/chromium.org/chromedriver/downloads

    0 讨论(0)
  • 2020-12-11 00:44

    update your protractor and run your test cases it will start executing, there are few new stuff added from Protractor, this method worked for me.

    update protractor - npm install -g protractor update webdrvier - webdriver-manager update

    0 讨论(0)
  • 2020-12-11 00:46

    With the last headless version, you can't resize the window as there isn't any window anymore.

    For my own case, I was experiencing this issue with behat, I used to resize the window with previous versions of chrome of firefox, I surround the following line:

    $this->getSession()->resizeWindow(1600, 1200, 'current');
    

    with a simple check on the driver:

    if (($this->getSession()->getDriver() instanceof Selenium2Driver)) {
        $this->getSession()->resizeWindow(1600, 1200, 'current');
    }
    
    0 讨论(0)
提交回复
热议问题