'Using explicit wait with Async mode in WebDriverIO
If I am using the async mode in WebDriver IO, Given the following test case:
search the user name input and fill it with the user name
1 it("Explicit Wait Example", async () => {
2    const userNameInput = await $('//input[@id="username"]');
3    await userNameInput.waitForExist();
4    await userNameInput.setValue("My User Name");
5  });
since the await function will wait the promise (line 2), is needed to use the waitForExist() (line 3)? or Can I avoid it?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source | 
|---|
