Skip to content
Advertisement

Selenium WebDriver wait till element is displayed

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 the selenium program to wait till the page is loaded and then perform some actions.

My current code is as follows

JavaScript

The error I get is:

JavaScript

Advertisement

Answer

I stumbled upon an answer to my question

So to wait for an element to appear we have to:

JavaScript
Advertisement