Good day!
I'm switching off SELENIUM_PROMISE_MANAGER in protractor jasmine conf due to #2969
In my PageObject methods I have a setter, which make "sendKeys" in textBox elements from object literal passed to this setter, like:
set informationSection(object) {
for (let element in object) {
this[element].sendKeys(object[element]);
}
}
and in testCase:
it('description of spec', async() => {
const information = {
field1: 'Field 1 description,
field2: 'Field 2 description,
};
await mainPage.openInformationDialod();
//Here need to call setter
mainPage.informationSection = information;
await mainPage.apply();
})
In this example I expect that firstly will "sendKeys" from setter, and then "apply" method. But setter works synchronously, and sometimes it finished after "mainPage.apply()".
In case of usage protractor control flow there are no such problem. Does anybody know something workaround which allow to push setter inside async stack?
Thank you in advance.