{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/5487","labels_url":"https://api.github.com/repos/appium/appium/issues/5487/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/5487/comments","events_url":"https://api.github.com/repos/appium/appium/issues/5487/events","html_url":"https://github.com/appium/appium/issues/5487","id":99870319,"number":5487,"title":"Cannot unlock screen in iOS device (Simulator)","user":{"login":"igalep","id":3533224,"avatar_url":"https://avatars.githubusercontent.com/u/3533224?v=3","gravatar_id":"","url":"https://api.github.com/users/igalep","html_url":"https://github.com/igalep","followers_url":"https://api.github.com/users/igalep/followers","following_url":"https://api.github.com/users/igalep/following{/other_user}","gists_url":"https://api.github.com/users/igalep/gists{/gist_id}","starred_url":"https://api.github.com/users/igalep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igalep/subscriptions","organizations_url":"https://api.github.com/users/igalep/orgs","repos_url":"https://api.github.com/users/igalep/repos","events_url":"https://api.github.com/users/igalep/events{/privacy}","received_events_url":"https://api.github.com/users/igalep/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/appium/appium/labels/iOS","name":"iOS","color":"444444"},{"url":"https://api.github.com/repos/appium/appium/labels/OnGoing","name":"OnGoing","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-09T06:23:56Z","updated_at":"2015-08-10T11:25:47Z","closed_at":null,"body":"Hi ,\r\nI'm trying to lock / unlock iOS simulator's device\r\n\r\ndriver.lockScreen(10);\r\nDoes the job , but the thing is , after the timeout (10s) the device hasn't been unlocked\r\n\r\nIt stays i locked state .\r\nThe appium log :\r\n\r\ninfo: --> POST /wd/hub/session/0d80a422-aadb-47db-a1cd-2a269226756e/appium/device/lock {\"seconds\":10}\r\n\r\ninfo: [debug] Pushing command to appium work queue: \"au.lock(10)\"\r\n\r\ninfo: [debug] Sending command to instruments: au.lock(10)\r\n\r\ninfo: [debug] [INST] 2015-08-06 14:50:16 +0000 Debug: Got new command 9 from instruments: au.lock(10)\r\n\r\ninfo: [debug] [INST] 2015-08-06 14:50:16 +0000 Debug: evaluating au.lock(10)\r\n\r\ninfo: [debug] [INST] 2015-08-06 14:50:16 +0000 Debug: target.lockForDuration(\"10\")\r\n\r\ninfo: [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}}})\r\n\r\ninfo: [debug] [INST] 2015-08-06 14:50:29 +0000 Debug: evaluation finished\r\n\r\ninfo: [debug] [INST] 2015-08-06 14:50:29 +0000 Debug: responding with:\r\n\r\ninfo: [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/Resurces/node_modules/appium/node_modules/appium uiauto/bin/command-proxy-client.js/tmp/instruments_sock 2,{\"status\":0,\"value\":false}...\r\n\r\nAny idea how to unlock the screen ? or what I'm doing wrong ?\r\n"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/129412412","html_url":"https://github.com/appium/appium/issues/5487#issuecomment-129412412","issue_url":"https://api.github.com/repos/appium/appium/issues/5487","id":129412412,"user":{"login":"igalep","id":3533224,"avatar_url":"https://avatars.githubusercontent.com/u/3533224?v=3","gravatar_id":"","url":"https://api.github.com/users/igalep","html_url":"https://github.com/igalep","followers_url":"https://api.github.com/users/igalep/followers","following_url":"https://api.github.com/users/igalep/following{/other_user}","gists_url":"https://api.github.com/users/igalep/gists{/gist_id}","starred_url":"https://api.github.com/users/igalep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igalep/subscriptions","organizations_url":"https://api.github.com/users/igalep/orgs","repos_url":"https://api.github.com/users/igalep/repos","events_url":"https://api.github.com/users/igalep/events{/privacy}","received_events_url":"https://api.github.com/users/igalep/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T11:25:47Z","updated_at":"2015-08-10T11:25:47Z","body":"I can move it manually on real device , simulator but by using appium it's just doesn't work no matter what I've tried ...\r\nThis is the screen I getting after the 'driver.lockScreen' being executed.\r\n\r\n![screen shot 2015-08-10 at 2 24 36 pm](https://cloud.githubusercontent.com/assets/3533224/9170438/791eed66-3f6b-11e5-91a7-5129102d99e3.png)\r\n\r\n\r\nI've also tried to swipe with :\r\ndriver.swipe\r\ntouchAction\r\n...\r\n\r\nnothing works for me"}}