Is it good practice to use Thread.sleep ? | Selenium Forum
M
Posted on 02/12/2015
I am using Thread.sleep() in my automation scripts often apart from using implicit and explicit waits.
as per my observation even while using implicit and explicit waits they are few cases where webelements are not getting recognized because of which scripts are failing. So can you suggest me on this please.

M
Replied on 03/12/2015

what do you want help with? i can only suggest on limited try to increase time and see if it works.


M
Replied on 03/12/2015

I will consider your suggestion.
But what is your view on using Thread.sleep() in automation.
Is it good practice?


M
Replied on 03/12/2015

no its not a good practice. you should avoid it.