无法在iOS设备中解锁屏幕(模拟器)

时间:2015-08-07 10:13:29

标签: ios ios-simulator automated-tests appium unlock

我正在尝试锁定/解锁iOS模拟器的设备

driver.lockScreen(10);

作业,但事情是,超时(10s)后设备尚未解锁

它处于锁定状态。

appium日志:

info: --> POST /wd/hub/session/0d80a422-aadb-47db-a1cd-2a269226756e/appium/device/lock {"seconds":10}

info: [debug] Pushing command to appium work queue: "au.lock(10)"

info: [debug] Sending command to instruments: au.lock(10)

info: [debug] [INST] 2015-08-06 14:50:16 +0000 Debug: Got new command 9 from instruments: au.lock(10)

info: [debug] [INST] 2015-08-06 14:50:16 +0000 Debug: evaluating au.lock(10)

info: [debug] [INST] 2015-08-06 14:50:16 +0000 Debug: target.lockForDuration("10")

info: [debug] [INST] 2015-08-06 14:50:27 +0000 Debug: target.springboard().mainWindow().scrollViews().firstWithPredicate("ANY elements.name == 'SlideToUnlock' OR ANY elements.name == 'SlideToSetup'").dragInsideWithOptions({endOffset:{x:0.90,y:0.90}}, duration:"0.5", startOffset:{x:0.10,y:0.90}}})

info: [debug] [INST] 2015-08-06 14:50:29 +0000 Debug: evaluation finished

info: [debug] [INST] 2015-08-06 14:50:29 +0000 Debug: responding with:

info: [debug] [INST] 2015-08-06 14:50:29 +0000 Debug: Running system command #10: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":false}...

知道如何解锁屏幕吗?或者我做错了什么?

由于

0 个答案:

没有答案