Chrome is being controlled by automated test software

后端 未结 13 1019
天涯浪人
天涯浪人 2020-12-01 10:49

I am running automated tests in Chrome with Serenity BDD (Selenium).

I had to download a new ChromeDriver, because my tests could not run -> The test would open Chro

13条回答
  •  有刺的猬
    2020-12-01 11:33

    "disable-info" switch is not supported anymore for the latest chromedrivers. (at least 76.0).
    @Rajeev's answer works and here I write the counterpart for C#.

    ChromeOptions chromeOptions = new ChromeOptions();
    chromeOptions.AddAdditionalCapability("useAutomationExtension", false);
    chromeOptions.AddExcludedArgument("enable-automation");
    Driver = new ChromeDriver(chromeOptions);
    

提交回复
热议问题