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 ?

贡献者指南