Closed szepeshazi closed 3 years ago
Calling exists
will implicitly try to grab the most recent "version" of that element, as a result retryWhenStale
is not necessary since it actively refreshes it.
If exists
is failing, consider two things:
Add some delay before calling trigger()
or implicitly add a delay before the if-conditional
check. If some action occurred and your page hasn't fully loaded, the exists
check may return false
since it hasn't been fully rendered yet.
Your element isn't loaded for some reason OR you're looking it from the wrong parent element.
Using
PageLoader
withWebDriver
on Windows x64, dart 2.7.2, pageloader 3.3.0, chromedriver 80.0.3987.106Having the following PO snippet:
and
trigger()
in the above block,trigger()
again will throwSeems like the
exists
getter is not wrapped inretryWhenStale()
, causing exception on removed elements.