Kenzitron / protractor-jasmine2-html-reporter

HTML reporter for Jasmine2 and Protractor
32 stars 53 forks source link

TypeError: Cannot read property 'getCapabilities' of undefined #20

Closed assafshilo closed 8 years ago

assafshilo commented 8 years ago

Hi, I'm getting this error while using the 'protractor-jasmine2-html-reporter' with this configuration:

  onPrepare: function() {
      jasmine.getEnv().addReporter(
        new Jasmine2HtmlReporter({
          savePath: 'target/screenshots',
          filePrefix: 'index',
        })
      );
   }

The details of the packages:

"name": "protractor",   "version": "3.0.0"
"name": "protractor-jasmine2-html-reporter",  "version": "0.0.5"
"name": "jasmine", "version": "2.4.1"

I'm getting this error:

node_modules/protractor/node_modules/selenium-webdriver/lib/goog/../webdriver/promise.js:1337
      return callbackFn(this.value_);
             ^
TypeError: Cannot read property 'getCapabilities' of undefined
    at node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:432:19
    at promise.Promise.goog.defineClass.invokeCallback_ (node_modules/protractor/node_modules/selenium-webdriver/lib/goog/../webdriver/promise.js:1337:
14)
    at promise.ControlFlow.goog.defineClass.goog.defineClass.abort_.error.executeNext_.execute_ (node_modules/protractor/node_modules/selenium-webdrive
r/lib/goog/../webdriver/promise.js:2776:14)
    at promise.ControlFlow.goog.defineClass.goog.defineClass.abort_.error.executeNext_ (node_modules/protractor/node_modules/selenium-webdriver/lib/goo
g/../webdriver/promise.js:2758:21)
    at goog.async.run.processWorkQueue (node_modules/protractor/node_modules/selenium-webdriver/lib/goog/async/run.js:124:15)
    at process._tickCallback (node.js:368:9)
[launcher] Process exited with error code 1

I read a lot and I saw that this was an open issue and it was closed. It create the files but the protractor is never stopped unless I force him to. Thank you very much!