openatx/uiautomator2

proper way to wait and fetch element

Open

#479 ouverte le 13 nov. 2019

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)Python (1 353 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (5 632 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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 ?

Guide contributeur