Closed EdwardCheck closed 10 months ago
xpath可以定位到控件,但是就是不能输入,随机输入也不行,为什么? 安装了ADBKeyboard.apk
测试设备 OnePlus9R 小米12 Android版本 12
OnePlus9R
小米12
12
[ { "prob": 1, "activity": "com.xx.demo.ui.login.LoginActivity", "times": 1, "actions": [ { "xpath": "//*[@resource-id='com.xx.demo:id/username']", "action": "CLICK", "text": "123***78@163.com", "clearText": true, "throttle": 5000 }, { "xpath": "//*[@resource-id='com.xx.demo:id/password']", "action": "CLICK", "text": "abcd1234", "clearText": true, "throttle": 5000 } ] } ]
- 运行日志 ```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
+1 redmi K30 pro android 12
下个版本修复
2.3.23.0810.1705-git fixed
xpath可以定位到控件,但是就是不能输入,随机输入也不行,为什么? 安装了ADBKeyboard.apk
测试设备
OnePlus9R
小米12
Android版本12