This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
Using async/await inside setter when promise manager is off #4901
Open
Description
Hi there!
As I know due to 2969 the PROMISE_MANAGER will be deprecated, and so protractor will not use it at all.
Currently, I'm using setter to fill web-elements in page-objects, like:
set Information(value) {
this.information.sendKeys(value);
}
And use it inside test case:
it('Filling Information', () => {
mainPage.Information = "Advanced info";
});
Which has a good laconic style, instead of usage of methods.
But if PROMISE_MANAGER = off I need to use async/await statements, which are not allowed within setter. So, I can't use such approach.
Does protractor has some workaround for this example?
Thank you.
Feature Request
- To have laconic style in test cases to fill data in web-pages. Functionality worked with PROMISE_MANAGER=on
- This is a not breaking change.
Metadata
Metadata
Assignees
Labels
No labels