When to use Thread.sleep in Selenium Java

Опубликовано: 13 Октябрь 2024
на канале: automateNow
1,114
22

Learn what are the 3 cases in which it is okay to use Thread.sleep() in a Selenium Java project.

Thread.sleep causes the current thread to suspend execution for a specified period.

Is using Thread.sleep a good or bad thing and when should it be used, if ever? These are the questions that we are about to answer.

You can find the source code for this project on automateNow's GitHub page.
https://github.com/automatenow/Interm...

😀 Subscribe for weekly videos! 👍

👩‍🎓 COURSES

☕ Java For Absolute Beginners https://bit.ly/learn-java2022

⏯ PLAYLISTS

☑️ Automation Fundamentals https://bit.ly/2QbN7qm
☑️ Automation Tools https://bit.ly/2OFj4qO
☑️ General WebDriver https://bit.ly/2Z3tG7y
☑️ Intro to WebDriver https://bit.ly/3gb5Jlx
☑️ Intermediate WebDriver https://bit.ly/2OBTR0r
☑️ Java https://bit.ly/3sBuI7M
☑️ Selenium 4 https://bit.ly/2VQ1lA9
☑️ Version Control https://bit.ly/3CvHplU
☑️ Web Element Locators https://bit.ly/2QfDGpK

📫 LET'S CONNECT!

☑️ https://linktr.ee/automateNow

🔗 REFERENCES

☑️ Oracle Website https://bit.ly/3eIBJei