{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/5948","repository_url":"https://api.github.com/repos/appium/appium","labels_url":"https://api.github.com/repos/appium/appium/issues/5948/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/5948/comments","events_url":"https://api.github.com/repos/appium/appium/issues/5948/events","html_url":"https://github.com/appium/appium/issues/5948","id":123618441,"number":5948,"title":"the tap command get stuck when duration is set to 0","user":{"login":"reekic","id":16027737,"avatar_url":"https://avatars.githubusercontent.com/u/16027737?v=3","gravatar_id":"","url":"https://api.github.com/users/reekic","html_url":"https://github.com/reekic","followers_url":"https://api.github.com/users/reekic/followers","following_url":"https://api.github.com/users/reekic/following{/other_user}","gists_url":"https://api.github.com/users/reekic/gists{/gist_id}","starred_url":"https://api.github.com/users/reekic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reekic/subscriptions","organizations_url":"https://api.github.com/users/reekic/orgs","repos_url":"https://api.github.com/users/reekic/repos","events_url":"https://api.github.com/users/reekic/events{/privacy}","received_events_url":"https://api.github.com/users/reekic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/appium/appium/labels/NeedsTriage","name":"NeedsTriage","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-23T08:10:03Z","updated_at":"2016-03-04T20:24:05Z","closed_at":null,"body":"\r\nmac os : 10.11.1\r\nappium : 1.4.16\r\niphone6s: 9.1\r\n[appium_log.txt](https://github.com/appium/appium/files/70582/appium_log.txt)\r\n\r\n**test procedure**\r\n\r\n1. open the safari and access a web using the safari launcher\r\n2. tap the video embeded in the page to play it\r\n\r\n**issue**\r\n\r\n1. the tap wont retrun if the duration is set to 0\r\n2. while if the code is changed to driver.tap([(188,284)], 200), it works\r\n\r\n**key python code**\r\n\r\nc = driver.current_context\r\ndriver.switch_to.context(\"NATIVE_APP\")\r\nsleep(1)\r\ndriver.tap([(188,284)],200)\r\nsleep(2)\r\ndriver.tap([(188,284)])\r\nsleep(2)\r\ndriver.switch_to.context(c)\r\n\r\n\r\n**gist log for the \"driver.tap([(188,284)])\", abnormal**\r\n\r\ninfo: --> POST /wd/hub/session/7a7ba361-443c-4db7-afed-b0f624efae1d/touch/perform {\"sessionId\":\"7a7ba361-443c-4db7-afed-b0f624efae1d\",\"actions\":[{\"options\":{\"y\":284,\"x\":188,\"count\":1},\"action\":\"tap\"}]}\r\ninfo: [debug] Pushing command to appium work queue: \"UIATarget.localTarget().frontMostApp().rect()\"\r\ninfo: [debug] Sending command to instruments: UIATarget.localTarget().frontMostApp().rect()\r\ninfo: [debug] [INST] 2015-12-23 03:53:14 +0000 Debug: Got new command 4 from instruments: UIATarget.localTarget().frontMostApp().rect()\r\ninfo: [debug] [INST] 2015-12-23 03:53:14 +0000 Debug: evaluating UIATarget.localTarget().frontMostApp().rect()\r\ninfo: [debug] [INST] 2015-12-23 03:53:14 +0000 Debug: evaluation finished\r\ninfo: [debug] [INST] 2015-12-23 03:53:14 +0000 Debug: responding with:\r\ninfo: [debug] [INST] 2015-12-23 03:53:14 +0000 Debug: Running system command #5: /usr/local/bin/node /Users/ninja/Documents/AppiumProject/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{\"status\":0,\"value\":{\"origin\":{\"x\":0,\"y\":0},\"size\":{\"width\":375,\"height\":667}}}...\r\ninfo: [debug] Socket data received (81 bytes)\r\ninfo: [debug] Socket data being routed.\r\ninfo: [debug] Got result from instruments: {\"status\":0,\"value\":{\"origin\":{\"x\":0,\"y\":0},\"size\":{\"width\":375,\"height\":667}}}\r\ninfo: [debug] Pushing command to appium work queue: \"UIATarget.localTarget().frontMostApp().tapWithOptions({\\\"tapOffset\\\":{\\\"x\\\":0.5013333333333333,\\\"y\\\":0.4257871064467766},\\\"tapCount\\\":1,\\\"touchCount\\\":1})\"\r\ninfo: [debug] Sending command to instruments: UIATarget.localTarget().frontMostApp().tapWithOptions({\"tapOffset\":{\"x\":0.5013333333333333,\"y\":0.4257871064467766},\"tapCount\":1,\"touchCount\":1})\r\ninfo: [debug] [INST] 2015-12-23 03:53:15 +0000 Debug: Got new command 5 from instruments: UIATarget.localTarget().frontMostApp().tapWithOptions({\"tapOffset\":{\"x\":0.5013333333333333,\"y\":0.4257871064467766},\"tapCount\":1,\"touchCount\":1})\r\ninfo: [debug] [INST] 2015-12-23 03:53:15 +0000 Debug: evaluating UIATarget.localTarget().frontMostApp().tapWithOptions({\"tapOffset\":{\"x\":0.5013333333333333,\"y\":0.4257871064467766},\"tapCount\":1,\"touchCount\":1})\r\ninfo: [debug] [INST] 2015-12-23 03:53:15 +0000 Debug: target.frontMostApp().tapWithOptions({touchCount:\"1\", tapCount:\"1\", tapOffset:{x:\"0.5013333333333333\", y:\"0.4257871064467766\"}})\r\ninfo: [debug] Didn't get a new command in 60 secs, shutting down...\r\ninfo: Shutting down appium session\r\ninfo: [debug] Stopping safariLauncher\r\ninfo: [debug] Stopping iOS log capture\r\ninfo: [debug] Running ios sim reset flow\r\ninfo: [debug] Killing the simulator process\r\ninfo: [debug] Killing any other simulator daemons\r\ninfo: [debug] Killall Simulator\r\ninfo: [debug] On a real device; cannot clean device state\r\ninfo: [debug] Cleaning up appium session\r\ninfo: [debug] We shut down because no new commands came in\r\n\r\n**gist log for the \"driver.tap([(188,284)],200)\", normal**\r\n\r\ninfo: --> POST /wd/hub/session/5022fedf-e834-4146-8554-62110dd58596/touch/perform {\"actions\":[{\"action\":\"longPress\",\"options\":{\"x\":188,\"y\":284,\"duration\":10}},{\"action\":\"release\",\"options\":{}}],\"sessionId\":\"5022fedf-e834-4146-8554-62110dd58596\"}\r\ninfo: [debug] Pushing command to appium work queue: \"target.touch([{\\\"touch\\\":[{\\\"x\\\":188,\\\"y\\\":284}],\\\"time\\\":0.2}])\"\r\ninfo: [debug] Sending command to instruments: target.touch([{\"touch\":[{\"x\":188,\"y\":284}],\"time\":0.2}])\r\ninfo: [debug] [INST] 2015-12-23 03:59:04 +0000 Debug: evaluation finished\r\ninfo: [debug] [INST] 2015-12-23 03:59:04 +0000 Debug: responding with:\r\ninfo: [debug] [INST] 2015-12-23 03:59:04 +0000 Debug: Running system command #4: /usr/local/bin/node /Users/ninja/Documents/AppiumProject/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{\"status\":0,\"value\":\"\"}...\r\ninfo: [debug] [INST] 2015-12-23 03:59:21 +0000 Debug: Got new command 4 from instruments: target.touch([{\"touch\":[{\"x\":188,\"y\":284}],\"time\":0.2}])\r\ninfo: [debug] [INST] 2015-12-23 03:59:21 +0000 Debug: evaluating target.touch([{\"touch\":[{\"x\":188,\"y\":284}],\"time\":0.2}])\r\ninfo: [debug] [INST] 2015-12-23 03:59:21 +0000 Debug: target.touch(__NSCFArray)\r\ninfo: [debug] Socket data received (25 bytes)\r\ninfo: [debug] Socket data being routed.\r\ninfo: [debug] Got result from instruments: {\"status\":0,\"value\":\"\"}\r\ninfo: [debug] Responding to client with success: {\"status\":0,\"value\":\"\",\"sessionId\":\"5022fedf-e834-4146-8554-62110dd58596\"}\r\ninfo: <-- POST /wd/hub/session/5022fedf-e834-4146-8554-62110dd58596/touch/perform 200 1865.849 ms - 74 {\"status\":0,\"value\":\"\",\"sessionId\":\"5022fedf-e834-4146-8554-62110dd58596\"}\r\n"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/192451999","html_url":"https://github.com/appium/appium/issues/5948#issuecomment-192451999","issue_url":"https://api.github.com/repos/appium/appium/issues/5948","id":192451999,"user":{"login":"scottdixon","id":4726068,"avatar_url":"https://avatars.githubusercontent.com/u/4726068?v=3","gravatar_id":"","url":"https://api.github.com/users/scottdixon","html_url":"https://github.com/scottdixon","followers_url":"https://api.github.com/users/scottdixon/followers","following_url":"https://api.github.com/users/scottdixon/following{/other_user}","gists_url":"https://api.github.com/users/scottdixon/gists{/gist_id}","starred_url":"https://api.github.com/users/scottdixon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottdixon/subscriptions","organizations_url":"https://api.github.com/users/scottdixon/orgs","repos_url":"https://api.github.com/users/scottdixon/repos","events_url":"https://api.github.com/users/scottdixon/events{/privacy}","received_events_url":"https://api.github.com/users/scottdixon/received_events","type":"User","site_admin":false},"created_at":"2016-03-04T20:24:05Z","updated_at":"2016-03-04T20:24:05Z","body":"Please try with the latest Appium 1.5 `npm install -g appium`"}}