openatx/uiautomator2

proper way to wait and fetch element

Open

#479 aperta il 13 nov 2019

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Python (1353 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (5632 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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 ?

Guida contributor