AirtestProject / AirtestProject/Airtest
shell('input text') doesn't work as it should
- 主要语言
- 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 还没有评估数据。