Selenium Crashing: Chrome automation extension has crashed

后端 未结 10 1441
花落未央
花落未央 2020-12-29 22:05

I am using Selenium web drivers, and today, for no apparant reason I started getting an error with the message\"Chrome Automation Extension has crashed. Click this balloon

10条回答
  •  暖寄归人
    2020-12-29 22:30

    Ok, so you are serious about the admin part as a solution to the problem?

    Why not follow the advices from Google? http://chromedriver.chromium.org/help/chrome-doesn-t-start

    Passing '--no-sandbox' flag when creating your WebDriver session. Special test environments sometimes cause Chrome to crash when the sandbox is enabled.

    So I ended up doing as they adviced and can run things as admin. Guess it's a way forward for me now and hopefully it's a valid solution for others too.

    var options = new ChromeOptions();
    options.AddArgument("--no-sandbox");
    browser = new ChromeDriver(options);
    

提交回复
热议问题