Q. What is the purpose of the Thread.sleep() method in Selenium?

A
To set a dynamic wait based on conditions
B
To pause the execution for a fixed time
C
To handle alerts
D
To locate elements
Solution:

Thread.sleep() pauses the script for a specified milliseconds

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!

    [honeypot honeypot-100]