Appium appiumDesktop 启动后 点击元素后,重启模拟器,大神求解

大哲哥_kaysa · 2018年05月09日 · 最后由 大哲哥_kaysa 回复于 2018年05月09日 · 1780 次阅读

[Appium] Creating new AndroidDriver (v1.40.1) session
[Appium] Capabilities:
[Appium] appActivity: .view.WelcomeActivityAlias
[Appium] appPackage: com.xueqiu.android
[Appium] deviceName: xxx
[Appium] platformName: android
[Appium] newCommandTimeout: 0
[Appium] connectHardwareKeyboard: true
[BaseDriver]
[BaseDriver] W3C capabilities [] and MJSONWP desired capabilities were provided
[BaseDriver] Expected W3C "capabilities" to be a JSON Object but was provided with: []
[BaseDriver] Falling back to MJSONWP desired capabilities
[BaseDriver] The following capabilities were provided, but are not recognized by appium: connectHardwareKeyboard.
[BaseDriver] Session created with session id: b3403276-40de-4041-b187-5277b3db6803
[AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_161
[ADB] Checking whether adb is present
[ADB] Using adb from /Users/haal/Library/Android/sdk/platform-tools/adb
[AndroidDriver] Retrieving device list
[ADB] Trying to find a connected android device
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[AndroidDriver] Using device: 192.168.56.101:5555
[ADB] Checking whether adb is present
[ADB] Using adb from /Users/haal/Library/Android/sdk/platform-tools/adb
[ADB] Setting device id to 192.168.56.101:5555
[AndroidDriver] App file was not listed, instead we're going to run com.xueqiu.android directly on the device
[AndroidDriver] Checking whether package is present on the device
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/haal/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","pm","list","packages","com.xueqiu.android"]
[AndroidDriver] Starting Android session
[ADB] Running '/Users/haal/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","wait-for-device"]
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/haal/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","echo","ping"]
[AndroidDriver] Pushing settings apk to device...
[ADB] Getting install status for io.appium.settings
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/haal/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","pm","list","packages","io.appium.settings"]
[ADB] App is installed
[ADB] Getting package info for io.appium.settings
[ADB] Getting connected devices...

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
最佳回复

connectHardwareKeyboard,appium 不认识这个参数

共收到 2 条回复 时间 点赞

connectHardwareKeyboard,appium 不认识这个参数

雨夜狂奔 回复

问题已经解决 appiumDesktop1.3.2 个别手机,模拟器不支持,导致模拟器重启

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册