AirtestProject / AirtestProject/Airtest

shell('input text') doesn't work as it should

未关闭
#1,047 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
9.6k
派生
1.5k
PR 合并指标
30 天内没有已合并 PR

描述

**Describe the bug**
I input text in field with command "shell('input text ' + randomId)". Sometimes this command input only digits or part of string
randomId = ''.join(random.choices(string.ascii_lowercase + string.digits, k = 10))

**python version:** `python3.8.5`

**airtest version:** `1.2.13`

**Smartphone (please complete the following information):**
- Emulator: any model

My code:
```
while errorNotice:
randomId = ''.join(random.choices(string.ascii_lowercase + string.digits, k = 10))
poco("android.widget.ListView").child("android.view.View")[0].click()
keyevent('KEYCODE_MOVE_END')
ContinuousKeyevent(10, 'KEYCODE_DEL')
shell('input text ' + randomId)
text(randomId, False)
keyevent('TAB')
if not poco("errorNotice").exists():
errorNotice = True
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。