Implicit and explicit wait wait

Hard wait
Thread.sleep ();
implicit wait (for the overall situation in WebDriver example of effective throughout the life cycle, but not all elements need to wait.
Driver.manage.timeouts () implicitlyWait (Long Time, TimeUnit Unit).;
display wait: to wait for a condition occurs after the subsequent code to continue, such as finding element, clickable elements, like elements have been shown
WebDriverWait = new new WebDriverWait the wait ();
WebElement = wait.until element (expectCondition);

Guess you like

Origin www.cnblogs.com/JacquelineQA/p/12593290.html