openatx/uiautomator2

proper way to wait and fetch element

Open

#479 aberto em 13 de nov. de 2019

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)Python (1.353 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (5.632 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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 ?

Guia do colaborador