How can I use global variables in ptor ? The "window" prefix doesn't work.
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);
When I want use window.net
ptor doesn't know the window
I want to use net and vat in expect.