AirtestProject / AirtestProject/Poco

Wrong x, y position of element

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

説明

I'm testing native Android application with text menu, and trying to iterate via every menu item.

The problem with poco in the following:

` poco(text='menu item text').click()`

this code sometimes doesn't click anything (but sometimes works fine).

The following code:

```
pos = poco(text='menu item text').get_position()
y = pos[1] * poco.device.display_info['height']
touch([100, y])
```

sometimes clicking wrong elements, because get_position() method returns the same Y value for two different menu items.

What we can use to properly click the item if poco lib detects it on the view? How to properly detect the Y position of item? Why sometimes it works, but sometimes - no? (for the same app&menu)

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

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

評価

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

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

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