Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in DevOps and Agile by (29.3k points)

How can I get selenium to wait for something like a calendar widget to load? Right now I am just doing a Thread.sleep(2500) after exporting the test case to a junit program.

1 Answer

0 votes
by (50.2k points)

You could use

waitForElementPresent(locator)

Which will wait until the element present in the document object model 

To check the visibility of element use the following code

 waitForElementHeight(locator)

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.1k users

Browse Categories

...