bytedance / Fastbot_Android

Fastbot(2.0) is a model-based testing tool for modeling GUI transitions to discover app stability problems
Other
1.01k stars 235 forks source link

使用max.xpath.actions无法自动输入 #220

Closed EdwardCheck closed 10 months ago

EdwardCheck commented 1 year ago

xpath可以定位到控件,但是就是不能输入,随机输入也不行,为什么? 安装了ADBKeyboard.apk

测试设备 OnePlus9R 小米12 Android版本 12


- 运行日志
```kotlin

[Fastbot][2023-04-13 14:19:37.520] InputMethod ID: com.android.adbkeyboard/.AdbIME
[Fastbot][2023-04-13 14:19:37.520] Find Keybaord: com.android.adbkeyboard/.AdbIME

...

[Fastbot][2023-04-13 14:19:37.625] Sleeping for 2000 milliseconds
[Fastbot][2023-04-13 14:19:39.643] // Eventid: 3
[Fastbot][2023-04-13 14:19:39.673] action type: CLICK
[Fastbot][2023-04-13 14:19:39.674] rpc cost time: 23
[Fastbot][2023-04-13 14:19:39.731] Input text is 123***78@163.com
[Fastbot][2023-04-13 14:19:39.733]  event time:102
[Fastbot][2023-04-13 14:19:39.734] :Sending rotation degree=0, persist=false
[Fastbot][2023-04-13 14:19:39.744] :Sending Touch (ACTION_DOWN): 0:(488.0,556.0)
[Fastbot][2023-04-13 14:19:39.748] :Sending Touch (ACTION_UP): 0:(488.0,556.0)
[Fastbot][2023-04-13 14:19:39.754] :Sending Touch (ACTION_DOWN): 0:(942.0,565.0)
[Fastbot][2023-04-13 14:19:39.756] Wait Event for 1000 milliseconds
[Fastbot][2023-04-13 14:19:40.762] :Sending Touch (ACTION_UP): 0:(942.0,565.0)
[Fastbot][2023-04-13 14:19:40.773] :Sending Key (ACTION_DOWN): 67    // KEYCODE_DEL
[Fastbot][2023-04-13 14:19:40.777] :Sending Key (ACTION_UP): 67    // KEYCODE_DEL
[Fastbot][2023-04-13 14:19:40.782] :Sending Touch (ACTION_DOWN): 0:(339.0,551.0)
[Fastbot][2023-04-13 14:19:40.784] :Sending Touch (ACTION_UP): 0:(339.0,551.0)
[Fastbot][2023-04-13 14:19:40.789] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:40.941] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:41.095] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:41.249] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:41.402] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:41.556] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:41.708] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:41.860] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:42.013] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:42.166] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:42.321] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:42.474] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:42.628] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:42.782] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:42.936] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:43.100] Sleeping for 5500 milliseconds
[Fastbot][2023-04-13 14:19:48.622] // Eventid: 15
[Fastbot][2023-04-13 14:19:48.629] action type: CLICK
[Fastbot][2023-04-13 14:19:48.630] rpc cost time: 3
[Fastbot][2023-04-13 14:19:48.659] Input text is abcd1234
[Fastbot][2023-04-13 14:19:48.663]  event time:52
[Fastbot][2023-04-13 14:19:48.664] :Sending rotation degree=0, persist=false
[Fastbot][2023-04-13 14:19:48.684] :Sending Touch (ACTION_DOWN): 0:(889.0,780.0)
[Fastbot][2023-04-13 14:19:48.690] :Sending Touch (ACTION_UP): 0:(889.0,780.0)
[Fastbot][2023-04-13 14:19:48.696] :Sending Touch (ACTION_DOWN): 0:(377.0,778.0)
[Fastbot][2023-04-13 14:19:48.699] Wait Event for 1000 milliseconds
[Fastbot][2023-04-13 14:19:49.706] :Sending Touch (ACTION_UP): 0:(377.0,778.0)
[Fastbot][2023-04-13 14:19:49.714] :Sending Key (ACTION_DOWN): 67    // KEYCODE_DEL
[Fastbot][2023-04-13 14:19:49.724] :Sending Key (ACTION_UP): 67    // KEYCODE_DEL
[Fastbot][2023-04-13 14:19:49.734] :Sending Touch (ACTION_DOWN): 0:(202.0,808.0)
[Fastbot][2023-04-13 14:19:49.737] :Sending Touch (ACTION_UP): 0:(202.0,808.0)
[Fastbot][2023-04-13 14:19:49.743] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:49.896] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:50.050] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:50.205] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:50.357] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:50.510] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:50.663] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:50.815] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:50.968] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:51.121] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:51.274] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:51.427] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:51.580] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:51.733] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:51.885] :Checking IME Visible Height: 0
[Fastbot][2023-04-13 14:19:52.041] Sleeping for 5500 milliseconds
llz572382996 commented 1 year ago

+1 redmi K30 pro android 12

zhangzhao4444 commented 11 months ago

下个版本修复

zhangzhao4444 commented 10 months ago

2.3.23.0810.1705-git fixed