angular / protractor

E2E test framework for Angular apps
http://www.protractortest.org
MIT License
8.75k stars 2.31k forks source link

Launching Multiple Browser and running the URL's #4123

Closed shankarbkp closed 7 years ago

shankarbkp commented 7 years ago

Conf.js

multiCapabilities: [ { browserName: 'chrome',

 },
 {
   browserName: 'firefox',

},

{ browserName: 'MicrosoftEdge', }, { browserName: 'Opera', }, { browserName: 'Internet Explorer', }, { browserName: 'safari', }, ],

Protractor.js

'webDriverUpdate': { 'browsers': ['chrome'] }, 'webDriverUpdate': { 'browsers': ['Microsoft Edge'] }, 'webDriverUpdate': { 'browsers': ['safari'] },

      'webDriverUpdate': {
        'browsers': ['Internet Explorer']
      },
      'webDriverUpdate': {
        'browsers': ['firefox']
      },
      'webDriverUpdate': {
        'browsers': ['Opera']
      },
      'webDriverStart': {
      'args': ['--chrome']
  },
                'webDriverStart': {
                'args': ['--Microsoft Edge']
            },
            'webDriverStart': {
              'args': ['--Opera']

        },
        'webDriverStart': {
           'args': ['--safari']
        },
      'webDriverStart': {
          'args': ['--Internet Explorer']
      },
      'webDriverStart': {
          'args': ['--firefox']
      },

1.Issue: It is unable to launch Firefox,Safari,Microsoft Edge and Internet explorer though the drivers are downloaded in specific path based on the browser versions.

2.The following is the error message which is throwing in the console for all the browser \node_modules\gulp-angular-protractor\node_modules\gulp-protractor\node_modules\protractor\node_modules\selenium-webdriver\lib\atoms\error.js:108 var template = new Error(this.message); ^ UnknownError: The best matching driver provider org.openqa.selenium.edge.EdgeDriver can't create a new driver instance for Capabilities [{count=1, browserName=Microsoft Edge

NickTomlin commented 7 years ago

Are you able to recreate this with a isolated example (perhaps just using Safari and Edge?); i'd like to remove gulp-protractor from the equation. Our own CI tests use edge so my gut says that the issue lies elsewhere.

shankarbkp commented 7 years ago

I am facing issue when i use these browser individually under capabilities . I went through the code which you shared however its the same. Can you share me the Drivers for browser version which is listed as part of my post.

Also, share me the drivers for the current version of the browsers which you have listed as part of the code.

NickTomlin commented 7 years ago

Unfortunately there is no more code to share, the entirety of the example is available in the protractor repo. The best way to solve this is to produce a public repo with a minimal, complete, and verifiable example. Without this it is going to be difficult to actually understand your issue. This will help us eliminate any environmental inconsistencies and get to the root of the problem.

NickTomlin commented 7 years ago

I'm going to go ahead and close this for now since I haven't heard back. Please feel free to update with an example and @ me and I can re-open.