Google Chrome unable to navigate to specified URL when triggered from Selenium

前端 未结 7 1768
星月不相逢
星月不相逢 2021-01-06 06:05

I have an automation framework developed around Selenium-WebDriver which launches Chrome and navigates to specified URL and performs specified automation. When I commissione

7条回答
  •  粉色の甜心
    2021-01-06 06:30

    Reason for the exception is chrome failed to load selenium automation extension.

    When ever selenium opens chrome browser, selenium loads a chrome extension in chrome browser to work with it from some temp location. If chrome browser failed to load that extension it will throw an exception.

    I got the same exception when my organization blocked loading third party extensions in my chrome browser.

    Test method 
    Veolia.BrentGWP.UserStories.Features.BrentGWPFeature._3_EnterDetailsAndSelectAnAddress_John threw exception: 
    System.InvalidOperationException: unknown error: cannot get automation extension
    from unknown error: page could not be found: chrome-  extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html
    (Session info: chrome=41.0.2272.118)
    (Driver info: chromedriver=2.9.248315,platform=Windows NT 6.1 SP1 x86_64)
    

    I am using Selenium with C# and Visual Studio.

提交回复
热议问题