Protractor error message “unsupported command-line flag” in Chrome?

后端 未结 9 1502
予麋鹿
予麋鹿 2020-12-23 20:35

I\'m a new user to Protractor, and I encountered this error running my tests using Chrome (error displays beneath the address bar in the launched browser):

9条回答
  •  情深已故
    2020-12-23 21:36

    Selenium using C#.Net (Selenium + C#.Net)

    public static IWebDriver Instance = null;
    ChromeOptions opt = new ChromeOptions();
    
    opt.AddArguments("--test-type");

    Instance = new ChromeDriver(@"Path To directory containing chromedriver.exe" , opt ) ;

    It works for Google Chrome Version 47.0.2526.106 m.

提交回复
热议问题