Implicit vs Explicit vs Fluent And Sleep in Selenium
Why Do We Need Selenium Waits when there is Sleep in java ? Most of the time a common problem faced by almost all automation tester is " ElementNotVisibleException ". I saw the people scratching their head because of this!. Visually, when seeing the UI execution of script, we face a common question that, "we can see the element but why our script cant find this!!"❓ here is the catch! Usually, when navigation happens from one page to other/ on dynamically loading or hiding elements, there will be a delay of fractions. Hence, some time our eye won't catch that, though script may encounter of fail to find element. Hence, to resolve this we should apply wait! Types of Selenium Waits For Page Load Thread.Sleep() method Implicit Wait Explicit Wait Fluent Wait https://play.google.com/store/apps/details?id=com.shikshan.app Thread.Sleep() For Automation Testing with Selenium Sleep is a static method that belongs to the thread class in java. This method can...