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 stumbled upon an answer to my question
So to wait for an element to appear we have to:
driver.wait(function () { return driver.isElementPresent(webdriver.By.name("username")); }, timeout);