Chrome is being controlled by automated test software

后端 未结 13 1087
天涯浪人
天涯浪人 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:20

    ChromeOptions options = new ChromeOptions();
    options.setExperimentalOption("useAutomationExtension", false);
    options.setExperimentalOption("excludeSwitches",Collections.singletonList("enable-automation"));    
    WebDriver driver = new ChromeDriver(options);
    

    Use the above codes for latest Chrome drivers.

提交回复
热议问题