Here is the issue I am trying to get value from object inside a promise. I am trying to get the 1st element from a column (Kendo grid). Need to manipulate the value.
Here is the code:
currentAmountDue = element(((helper.getGridValue(businessPaymentsPage.colAmountDue(), 0)).getText().then(function (value) {
x = value;
console.log('x: ', x);
console.log('Value : ', value);
return value;
})));
console.log('x outside : ', x);
Here are the results:
x outside : 0
x: $9,750.75
Value : $9,750.75
I am new to Protractor and Promises.
Aucun commentaire:
Enregistrer un commentaire