openatx/uiautomator2

proper way to wait and fetch element

Aperta

#479 aperta il 13 nov 2019

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

Metriche repository

Star
 (5632 stelle)
Metriche merge PR
 (Merge medio 1g 21h) (5 PR mergiate 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