openatx/uiautomator2

proper way to wait and fetch element

オープン

#479 opened on 2019/11/13

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)Python (1,353 件のフォーク)batch import
enhancementhelp wanted

Repository metrics

Stars
 (5,632 個のスター)
PR merge metrics
 (平均マージ 1d 21h) (30d で 5 merged PRs)

説明

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 ?

コントリビューターガイド