AirtestProject / AirtestProject/Airtest

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

Đang mở
#1,047 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
9.6k
Fork
1.5k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**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
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.