This repository was archived by the owner on Aug 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
This repository was archived by the owner on Aug 5, 2020. It is now read-only.
TypeError: Cannot read property 'getCapabilities' of undefined #51
Copy link
Copy link
Open
Labels
Description
Hello. I'm using VisualReview with Protractor and it's plugin. After everything is set-up like in a guide, even if my VisualReview works good, it takes screenshots and everything - after all specs are run I'm getting an error in console. I don't know if it has any impact on my tests (looks like not), but still would love to fix it.
JMs-MacBook-Pro:protractortesting jm$ protractor protractor.conf.js
created run with ID 3
Using the selenium server at http://localhost:4444/wd/hub
[launcher] Running 1 instances of WebDriver
Spec started
1 Home Page
✓ should render properly (11 secs)
✓ should contain proper title (2 secs)
2 Login Page
✓ should render properly (12 secs)
✓ should contain proper title (3 secs)
2.1 Cookie Window
✓ should contain cookie frame with elements (3 secs)
✓ should contain cookie description (3 secs)
✓ should contain cookie more.. text (3 secs)
✓ should redirect user to cookie page after click on more.. text (4 secs)
✓ should contain cookie accept button (3 secs)
✓ should close cookie frame after acceptation (3 secs)
Executed 10 of 10 specs SUCCESS in 46 secs.
[launcher] 0 instance(s) of WebDriver still running
[launcher] chrome #1 passed
/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1877
var result = fn();
^
TypeError: Cannot read property 'getCapabilities' of undefined
at /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:430:19
at promise.ControlFlow.runInFrame_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1877:20)
at promise.Callback_.goog.defineClass.notify (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:2464:25)
at promise.Promise.notify_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:563:12)
at Array.forEach (native)
at Object.goog.array.forEach (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/array/array.js:203:43)
at promise.Promise.notifyAll_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:552:16)
at goog.async.run.processWorkQueue (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/async/run.js:125:21)
at runMicrotasksCallback (node.js:337:7)
at process._tickCallback (node.js:355:11)
[launcher] Process exited with error code 1
repository:
https://github.com/drptbl/protractortesting/
I've commented the lines with visualreview code and error is gone so it's related to visualreview for sure.
any suggestions? maybe some bad interactions with jasmine2-html-screenshot-reporter which makes screenshots too? would be great to fix this.
Regards,
drptbl.