测试积点老人 发表于 2021-2-19 09:38:45

关于appium-desktop的一直转圈加载不出来的问题,求解答!

我是在看了网上一些帖子的指导后进行的 appium-desktop测试经典windows app
根据网上帖子的指导,我先打开了winappdriver
然后打开appium-desktop;点击file;点击 New Session Window
然后进入了这个设置界面,下面的参数app我用的是windows10自带的计算器

然后点击start session;然后就进入了这个卡住转圈的界面

还有一点就是它在进入转圈界面的同时其实它在旁边打开了计算器如图:

然后就是无尽的转圈圈。。。。。。求大家集思广益帮帮我这个初中生
下面附上WinAppDriver的运行日志

C:\Program Files (x86)\Windows Application Driver>WinAppDriver.exe 127.0.0.1 4723/wd/hub
Windows Application Driver Beta listening for requests at: http://127.0.0.1:4723/wd/hub
Press ENTER to exit.


==========================================
POST /wd/hub/session HTTP/1.1
Accept: application/json
Connection: keep-alive
Content-Length: 182
Content-Type: application/json; charset=UTF-8
Host: 127.0.0.1:4723
User-Agent: admc/wd/1.11.1

{"desiredCapabilities":{"app":"Microsoft.WindowsCalculator_8wekyb3d8bbwe!App","deviceName":"WindowsPC","platformName":"Windows","newCommandTimeout":0,"connectHardwareKeyboard":true}}
SessionManager - Creating session for Microsoft.WindowsCalculator_8wekyb3d8bbwe!App
SessionManager - WinAppDriver succeeded loading MitaBroker
SessionManager - Application launched
SessionManager - Session successfully created: 77673AAA-15D3-46AE-A57D-37388B56284C
HTTP/1.1 200 OK
Content-Length: 127
Content-Type: application/json

{"sessionId":"77673AAA-15D3-46AE-A57D-37388B56284C","status":0,"value":{"app":"Microsoft.WindowsCalculator_8wekyb3d8bbwe!App"}}


==========================================
POST /wd/hub/session/77673AAA-15D3-46AE-A57D-37388B56284C/context HTTP/1.1
Accept: application/json
Connection: keep-alive
Content-Length: 21
Content-Type: application/json; charset=UTF-8
Host: 127.0.0.1:4723
User-Agent: admc/wd/1.11.1

{"name":"NATIVE_APP"}
### WinAppDriver::CommandHandler::Session::HandleCommandAsMidPoint - Command context is not recognized
HTTP/1.1 404 Not Found
Content-Length: 144
Content-Type: application/json

{"status":9,"value":{"error":"unknown command","message":"Command not recognized: POST: /session/77673AAA-15D3-46AE-A57D-37388B56284C/context"}}


==========================================
GET /wd/hub/session/77673AAA-15D3-46AE-A57D-37388B56284C/source HTTP/1.1
Accept: application/json
Connection: keep-alive
Host: 127.0.0.1:4723
User-Agent: admc/wd/1.11.1


HTTP/1.1 501 Not Implemented
Content-Length: 82
Content-Type: text/plain; charset=utf-8

Command not implemented: GET: /session/77673AAA-15D3-46AE-A57D-37388B56284C/source


==========================================
GET /wd/hub/session/77673AAA-15D3-46AE-A57D-37388B56284C/screenshot HTTP/1.1
Accept: application/json
Connection: keep-alive
Host: 127.0.0.1:4723
User-Agent: admc/wd/1.11.1


HTTP/1.1 200 OK
Content-Length: 804826
Content-Type: application/json

2Th/HxQ9TqMwCcWZ/XEoeZDG+QWEOGmfFzcIkJuwg8ZrPMAPFxQD52KaeRpHnAtADmWAPNKcJwzmGAAA//RJREFUgacSUwoQSNGxwaJsyzQd03It2zZMXPLpK5NnB0HQ6rRxSZ9OELY6QTsIk5Sj/5rBE9vAJFMuMeAqA7JNqJBz0QH0AB1FCnL+P/gs6CHYK1zoKc8IwC1igPEhADxlLgcD9DBDIVBUhefiaSq3yUfpuo+PGsgL1YLsRD3wVh06flBWDuvaQIUqmoIiJEMD/W4ZbeiOj0+OjIwZOlS3JicaukKNRWqs8dPaydXh/dbjKPHSec66MjVmJxAHBCJH2zZLJbQUJ3XAhz1JmDrgUvup22mI5kfsbuWiK5KaC5sQkoWL0uJ2Yc9psk5kQpvX7bjuhz8OxMESqBnTMlWFZ/gjJHSp1XpmZ [...]


==========================================
GET /wd/hub/session/77673AAA-15D3-46AE-A57D-37388B56284C/window/current/size HTTP/1.1
Accept: application/json
Connection: keep-alive
Host: 127.0.0.1:4723
User-Agent: admc/wd/1.11.1


HTTP/1.1 200 OK
Content-Length: 98
Content-Type: application/json

{"sessionId":"77673AAA-15D3-46AE-A57D-37388B56284C","status":0,"value":{"height":541,"width":336}}

qqq911 发表于 2021-2-20 11:02:54

可以测试下,看是否连接成功

abcsell 发表于 2021-2-20 14:43:07

是不是设置的APP名称不对呀

郭小贱 发表于 2021-2-20 15:27:35

参考这篇帖子看下呢https://bbs.csdn.net/topics/399059203
页: [1]
查看完整版本: 关于appium-desktop的一直转圈加载不出来的问题,求解答!