I have searched on Google and the SO site and I get answers for JAVA but do not seem to get answers for node.js
I have a web app that takes time to load. I would like
I came up with this approach because it maintains the chainable promise syntax so that I can write this: await waitFind(By.id('abc')).click()
const waitFind = (locator) => {
return driver.findElement(async () => {
await driver.wait(until.elementLocated(locator));
return driver.findElement(locator);
});
}