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

后端 未结 9 1423
予麋鹿
予麋鹿 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

    I think this is a Chromedriver issue, I've raised an issue against Chromedriver https://code.google.com/p/chromedriver/issues/detail?id=799

    In the meantime you can try downgrading Chrome to v34.

    0 讨论(0)
  • 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");<br><br>
    Instance = new ChromeDriver(@"Path To directory containing chromedriver.exe" , opt ) ;
    

    It works for Google Chrome Version 47.0.2526.106 m.

    0 讨论(0)
  • 2020-12-23 21:36
    #!/usr/bin/env node
    var webdriver = require('selenium-webdriver');
    var driver = new webdriver.Builder().withCapabilities({
        browserName : 'chrome',
        'chromeOptions': {
            args: ['test-type']
        }
    }).build();
    
    0 讨论(0)
提交回复
热议问题