Wait for page to load using webdriverjs with mocha/chai. A page can be refreshed or reloaded by doing the following things. To get seconds for exampe from the time you did var ti = performance.now() you can do parseInt(performance.now() - ti) / 1000. How to solve Submit is not a function error in JavaScript ? Not the answer you're looking for? Using timings initiated with a