Protractor error message “unsupported command-line flag” in Chrome?-open source projects angular/protractor


Code that worked for both local webdriver and remote driver scenarios for Ruby Bindings. This suppressed the warning message on chrome35 (Remember that you have to get 2.10 chromedriver.exe from


caps ="chromeOptions" => {"args" => ["test-type" ]})

@browser = Selenium::WebDriver.for :chrome,desired_capabilities: caps

RemoteWebDriver (using GRID): Note that comma-separated-ips in the below code are the ips from which the grid hub is allowed to receive selenese commands. This security layer has been implemented from chrome35 and chromedriver 2.10 onwards

caps ="chromeOptions" => {"args" => ["test-type","whitelisted-ips=comma-separated-ips"]})

@browser =  Selenium::WebDriver.for :remote, :url => GRID_HUB_URL,:desired_capabilities => caps