Unable to open chrome browser using Selenium Webdriver. Loading unpacked extensions are disabled by administrator

前端 未结 7 1535
名媛妹妹
名媛妹妹 2021-01-01 05:50

I am automating my application using Selenium Webdriver, C#, Visual Studio and Chrome browser.

I am getting below popup when selenium tried to open the chrome browse

7条回答
  •  攒了一身酷
    2021-01-01 06:09

    I tried using AddExtension and AddArgument methods of ChromeOptions class, but none of them worked and got the same error.

    I did something like this (JAVA):

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

    The second line is all what you need. The third line is just making chrome window maximized.

    The pop-up isn't showing up currently. HTH.

提交回复
热议问题