📜  什么是fluentWait? - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:04.882000             🧑  作者: Mango

代码示例1
Let’s say you have an element which sometime appears in just 
1 second and some time it takes minutes to appear. In that 
case it is better to use fluent wait, as this will try to 
find element again and again until it find it or until the final timer runs 
out. Example is AJAX or JQuery
• Subtype of explicit wait but you can override the conditions
Waitwait=new 
FluentWait(driver).withTimout(5,timeUnit.seconds).
pollingEvery(100,timeunit.
milliseconds).ignoring(NoSuchElementException.class)