Appium implicit wait and wait for display

https://github.com/appium/appium/blob/master/docs/en/commands/session/timeouts/implicit-wait.md

Appium implicit wait and wait for display

Appium implicit wait and wait for display

Implicit wait:
set a timeout period, the server (Appium) at this time will continue to look for the elements, the error will not be found when the timeout, he is global
driver.implicitly_wait (10) # 10 Miao
driver.manage . () .timeouts () implicitlyWait ( 6, TimeUnit.SECONDS);

Shows the wait:
the client (terminal use case), and sets a timeout to find a condition element, constantly looking at this time the element, will not find a time-out error
WebDriverWait the wait = new new WebDriverWait (Driver, 10);
WebElement WebElement = wait.until (ExpectedConditions.elementToBeClickable (By.id ( " someid")));

Summary:
Implicit wait and wait on display is essentially the same
show wait one more element conditions specified timeout

Scenario control in the use, can be used to do an implicit global wait

If control is rather special, it takes longer to load, such as ten seconds or longer, you can use the display to wait for its separate treatment

Guess you like

Origin blog.51cto.com/11009785/2447399