openatx/uiautomator2

proper way to wait and fetch element

Open

#479 建立於 2019年11月13日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Python (1,353 fork)batch import
enhancementhelp wanted

倉庫指標

Star
 (5,632 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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 ?

貢獻者指南