Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

输入框输入无效,请求xiaocong支援 #297

Open
jantionMH opened this issue Dec 8, 2020 · 2 comments
Open

输入框输入无效,请求xiaocong支援 #297

jantionMH opened this issue Dec 8, 2020 · 2 comments

Comments

@jantionMH
Copy link

jantionMH commented Dec 8, 2020

先说明前提,我所测试的app基于flutter开发

问题描述:输入框输入数字177890,无法输入

复现步骤:self.device(text='请输入你的手机号码').set_text('177890')
响应:14:47:33.850 $ curl -X POST -d '{"jsonrpc": "2.0", "id": "8ab3b802671062a4350c23674eeb2d54", "method": "setText", "params": [{"mask": 1, "childOrSibling": [], "childOrSiblingSelector": [], "text": "\u8bf7\u8f93\u5165\u4f60\u7684\u624b\u673a\u53f7\u7801"}, "177890"]}' 'http://localhost:14319/jsonrpc/0' 14:47:34.078 Response (227 ms) >>> {"jsonrpc":"2.0","id":"8ab3b802671062a4350c23674eeb2d54","result":true} <<< END
响应是成功的,但app的输入框中依然是空的,没有177890
继而又尝试了多种方法:
d(text='请输入你的手机号码').set_text('177890') ;
d.press(key='0x07');
d.press(0x07,0x02);
结果都一样,响应都是Ture,但是屏幕上啥也没有。
所以我不知道是不是因为flutter导致的问题,还是有其他的解决方法?
image
image

@hongbinbao
Copy link
Collaborator

adb shell input text xxx 试试能输入吗

@jantionMH
Copy link
Author

jantionMH commented Dec 11, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants