-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Worked in 2.1, but exception in 2.2 #2456
Comments
+1 Fatal error: Cannot call method 'onPageLoad' of undefined |
+1 I'm also getting this. Works on 2.1.0 but fails with 2.2.0. With more explicit promise handling I get a fuller stacktrace:
where return browser.get('/noop'); |
+1 |
Getting this error as well:
|
+1 |
I get this error when trying to return a promise to CucumberJS:
which is supposed to support this feature: https://github.com/cucumber/cucumber-js#promises |
Tests aren't running yet due to a bug with Protractor (see angular/protractor#2456 (comment))
This looks like it was due to changes in the plugins. We've started assuming that instances of Protractor have a |
FYI - @sjelin we should make sure that the Protractor class does not rely on the setup done in |
…hey were not set up through the runner Fixes angular#2456
…hey were not set up through the runner Fixes angular#2456
@sjelin 1487e5a didn't actually fix my problem. I was creating an instance of |
@cletusw the That said - it looks like the internal documentation for the Runner did not get updated along with the plugins change, so we should at least fix that. https://github.com/angular/protractor/blob/master/lib/runner.js#L174 I also think it does make more sense for |
@juliemr I agree, what we're doing is pretty hacky. We'll start looking for a more official way to do it. Thanks! |
The text was updated successfully, but these errors were encountered: