1.

In a Selenium Script, what happens if you use both Thread.Sleep and WebDriver Waits?

Answer»

The Thread.sleep() method allows you to suspend the execution for a specified amount of time in milliseconds. If we use WebDriver WAITS in conjunction with the Thread.sleep() method, the webdriver will PAUSE the execution for the provided amount of time in the parameter of the Thread.sleep() function before PROCEEDING to the next wait. If we combine both waits, the TEST execution time will increase.



Discussion

No Comment Found