You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Documentation might need updating (Webdriver Promises) #6
Activity
bernardlv commentedon May 8, 2015
Doesn't work. I'm trying to make this work for hours now. It's just TypeErrors of "undefined" all the time.
var test = require('../testing'),
webdriver = require('..'),
until = webdriver.until,
By = webdriver.By,
driver;
test.before(function() {
driver = new webdriver.Builder()
.forBrowser('firefox')
.build();
});
[..]
errorsDefer = driver.promise.Deferred();
errorsDefer.resolve();
"TypeError: Cannot call method 'Deferred' of undefined"
errorsDefer = webdriver.promise.Deferred();
errorsDefer.resolve();
TypeError: Cannot call method 'resolve' of undefined
EDIT: Actually the only thing you say wouldn't work, worked. I just didn't know I need the other namespace.
errorsDefer = webdriver.promise.defer();
errorsDefer.fulfill();
return webdriver.promise.all(mainDefer);