openatx/uiautomator2

proper way to wait and fetch element

Open

#479 geöffnet am 13. Nov. 2019

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Python (1.353 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (5.632 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

I currently need to use 2 lines to wait not the golbal timeout:

text = 'play'
timeout = 30
device(textMatches=text).wait(timeout)
element = self.device(textMatches=text)

Is there a better solution, to wait for element existance ?

Contributor Guide