AirtestProject / AirtestProject/Poco

[UIObjectProxy]判断元素是否存在问题

オープン
#100 コメント 3 件 リアクション 0 件 担当者 1 名 @adolli が担当を希望しています GitHub で見る
主要言語
Python
スター
2k
フォーク
341
PR マージ指標
30日以内にマージされた PR はありません

説明

【测试脚本】
```py
from poco.drivers.android.uiautomation import AndroidUiautomationPoco
poco = AndroidUiautomationPoco(use_airtest_input=True, screenshot_each_action=False)
p=poco(text="fdddgfdg")
while True:
print(p.exists())
```
【手动控制页面跳转】
1)进入页面
![image](https://user-images.githubusercontent.com/11953895/47913616-b91fbd00-ded7-11e8-9fcc-c8adc73a8dd0.png)
结果:True
2)上滑至text="fdddgfdg"离开视线
![image](https://user-images.githubusercontent.com/11953895/47913682-f2f0c380-ded7-11e8-809c-85cd3957eb73.png)
结果:True
3)切换Fragment
![image](https://user-images.githubusercontent.com/11953895/47913716-11ef5580-ded8-11e8-968b-b4c034e545e8.png)
结果:False
4)切回步骤2页面
![image](https://user-images.githubusercontent.com/11953895/47913682-f2f0c380-ded7-11e8-809c-85cd3957eb73.png)
结果:True
5)点击左上角切换Activity
![image](https://user-images.githubusercontent.com/11953895/47913794-511da680-ded8-11e8-8aac-e1f03f3ec743.png)
结果:还是True

根据判断逻辑:
![image](https://user-images.githubusercontent.com/11953895/47913810-61ce1c80-ded8-11e8-829b-40588d50b7d7.png)
![image](https://user-images.githubusercontent.com/11953895/47913823-6d214800-ded8-11e8-8f15-8c2878bb81f1.png)

解释不通

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。