{"action":"opened","issue":{"url":"https://api.github.com/repos/appium/appium/issues/5385","labels_url":"https://api.github.com/repos/appium/appium/issues/5385/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/5385/comments","events_url":"https://api.github.com/repos/appium/appium/issues/5385/events","html_url":"https://github.com/appium/appium/issues/5385","id":95390129,"number":5385,"title":"Taking multiple screenshots in Hybrid app results in shutting down the app","user":{"login":"wswebcreation","id":11979740,"avatar_url":"https://avatars.githubusercontent.com/u/11979740?v=3","gravatar_id":"","url":"https://api.github.com/users/wswebcreation","html_url":"https://github.com/wswebcreation","followers_url":"https://api.github.com/users/wswebcreation/followers","following_url":"https://api.github.com/users/wswebcreation/following{/other_user}","gists_url":"https://api.github.com/users/wswebcreation/gists{/gist_id}","starred_url":"https://api.github.com/users/wswebcreation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wswebcreation/subscriptions","organizations_url":"https://api.github.com/users/wswebcreation/orgs","repos_url":"https://api.github.com/users/wswebcreation/repos","events_url":"https://api.github.com/users/wswebcreation/events{/privacy}","received_events_url":"https://api.github.com/users/wswebcreation/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-16T09:20:58Z","updated_at":"2015-07-16T09:20:58Z","closed_at":null,"body":"We are automating a hybrid app with Protractor (+ Cucumber) and Appium and facing some problems with creating screenshots.\r\n\r\nFor example we take a iOS simulator.\r\n* When we run a suite and a scenario fails, a screenshots needs to be made. In the log we see the command for taking the screenshot and it takes at least 10 seconds to respond.\r\n* When the second scenario fails, a screenshot is made. In the log we see the command for taking the screenshot and it takes more then 30 seconds to respond.\r\n* When a third scenario fails, a screenshot is made. In the log we see the command for taking the screenshot and it takes more then 60 seconds to respond. In that time Appium said it didn't receive a response and shutsdown the device. `We shut down because no new commands came in`\r\n\r\n*What I did to debug*\r\n* I tested my script on Safari on the simulator and saw that a screenshot could be made, so creating a screenshot wasn't the problem\r\n* I tried switching the context from `WEBVIEW_1` to `NATIVE_APP` and then take the screenshot, but this gave the same result\r\n\r\nI got a big-ass log, but don't know if it's wise to paste this in here, but it can be provided.\r\n\r\n"}}