When to use Thread.sleep in Selenium Java

Published: 30 April 2021
on channel: 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


Watch video When to use Thread.sleep in Selenium Java online, duration hours minute second in high quality that is uploaded to the channel automateNow 30 April 2021. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 1,114 times and liked it 22 visitors.