Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Protractor throws errors on unknown commandline flags. #3959

Closed
krotscheck opened this issue Jan 12, 2017 · 1 comment
Closed

Protractor throws errors on unknown commandline flags. #3959

krotscheck opened this issue Jan 12, 2017 · 1 comment

Comments

@krotscheck
Copy link
Contributor

krotscheck commented Jan 12, 2017

Bug report

Breaking change introduced by #3921 should be reverted.

Our project has implemented commandline flags (using yargs) that allow us to adjust the protractor.conf.js file to meet our environment needs. For example, we've implemented karma's --browsers flag to selectively filter our multiCapabilities list, so that devs can execute e2e tests against a specific browser without having to launch all the other ones.

  • Node Version: 7.4
  • Protractor Version: 5.0.0
  • Angular Version: 2.2.4
  • Browser(s): N/A
  • Operating System and Version macOS Sierra
  • Your protractor configuration file:
{
  ...,
  multiCapabilities: util.buildMultiCapabilities(args.browsers),
  ...
}
  • A relevant example test
protractor --browsers=Safari-10,Safari-9.1
  • Output from running the test
Error: Found extra flags: browsers
    at Object.<anonymous> (~/ui/node_modules/protractor/built/cli.js:172:15)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (~/ui/node_modules/protractor/bin/protractor:5:1)
    at Module._compile (module.js:571:32)
  • Steps to reproduce the bug
  1. Attempt to invoke protractor with a non-standard commandline flag or option.
@krotscheck krotscheck changed the title Error: Found extra flags: headless, browsers Protractor throws errors on unknown commandline flags. Jan 12, 2017
@cnishina
Copy link
Contributor

cnishina commented Jan 12, 2017

Please read the CHANGELOG. It says you should just send an additional flag --disableChecks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants