为啥调起 app 的时候有的应用可以正常调起,有的 app 会报错

from appium import webdriver
import time

desired_caps = {}
desired_caps['app'] = r"E:\Program Files (x86)\KuGou\KGMusic\KuGou.exe"  #'Microsoft.WindowsCalculator_8wekyb3d8bbwe!App'
driver = webdriver.Remote(command_executor='http://127.0.0.1:4723',
                                       desired_capabilities= desired_caps)

报错的日志
{"status":13,"value":{"error":"unknown error","message":"Failed to locate opened application window with appId: E:\\Program Files (x86)\\KuGou\\KGMusic\\KuGou.exe, and processId: 4292"}}

有大佬有相关方面的资料吗,GitHub 上面的内容好像很杂,有点看蒙逼了,主要是都是英文


↙↙↙阅读原文可查看相关链接,并与作者交流