This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/docs/common-delay.html
This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/docs/common-delay.html
What is the difference in implementations of WebUI.delay()
and Thread.sleep()
?
WebUI.delay() uses a parameter of seconds so 3 seconds would be 3
Thread.sleep() uses a parameter of milliseconds so 3 seconds would be 3000
Sorry for not being more clear. I am wondering about the implementation details of each method. I often see it is discouraged to use Thread.sleep()
due to the possibility of locking threads. Does WebUI.delay()
bring the same concerns or is it safer to use?
1 Like