I tried to evalaute a angular variable in protractor using "evaluate()" and got the value. How do I verify
element.evaluate('angularObj').then(function(angularObj) {
expect(angularObj.type).to.equal('myType');
});
But it says
TypeError: 'kitchen' is not a thenable.
kitchen
is the value in angularObj.type
How can i assert the value in protractor?