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 }}
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
I would expect every .then call to return a promise.
Since the protractor test below passes, ElementFinder's then method clearly returns the return value of the succes function.
Maybe this is a design decision, if so I would like to know the reason.
On a side note: I am very happy with protractor and I enjoy seeing the progress it makes. Thanks
Protractor test on version 1.0.0
describe('ElementFinder.then',function(){varfqdn=browser.params.fqdn;beforeEach(function(){browser.get('http://'+fqdn);browser.ignoreSynchronization=true;});it('should always return a promise',function(){vare1=element(by.tagName("body")).then(function(){});expect(e1).toBeUndefined();//expect(typeof (e1.then)).toBe("function");vare1=element(by.tagName("body")).then(function(){returnprotractor.promise.fullyResolved({});});expect(e1).not.toBeUndefined();expect(typeof(e1.then)).toBe("function");});});