Do you find it challenging to utilize global variables in ptor? Using the "window" prefix doesn't seem to be effective.
element(by.id("priceNet")).getText().then(function (getNet) {
net = getNet;
});
element(by.id("priceVat")).getText().then(function (getVat) {
vat = getVat;
});
console.log(vat + " " + net);
expect(element(by.id("priceTotal")).getText()).toContain(net + vat);
Is there a way to enable window.net
usage in ptor so that vat and net can be utilized in the expect method?