Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

It is confusing that args maps to capabilities #189

Open
benjaminapetersen opened this issue Oct 5, 2017 · 0 comments
Open

It is confusing that args maps to capabilities #189

benjaminapetersen opened this issue Oct 5, 2017 · 0 comments

Comments

@benjaminapetersen
Copy link

If I setup my gruntfile with something like this:

// protractor task
default: {
  options: {
    configFile: "test/protractor.conf.js",
    args: {
      baseUrl: grunt.option('baseUrl') || ("https://localhost:9000/" + contextRoot + "/"),
      browser: grunt.option('browser') ?
                grunt.option('browser') :
                isMac ?
                  'chrome' :
                  'firefox'
    }
  }
},

but also have the following in my protractor.conf.js:

multiCapabilities: [
  {'browserName': 'firefox'},
  {'browserName': 'chrome'}
  {'browserName': 'phantomjs'}
],

I will get feed back that I cannot use both capabilities and multiCapabilities together. It is not immediately clear that args maps to capabilities and will override multiCapabilities, this could either be clarified in docs or the args variable renamed.

Thanks!

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

1 participant