Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
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)

Browse Categories

...