{"action":"created","issue":{"url":"https://api.github.com/repos/theintern/leadfoot/issues/41","labels_url":"https://api.github.com/repos/theintern/leadfoot/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/theintern/leadfoot/issues/41/comments","events_url":"https://api.github.com/repos/theintern/leadfoot/issues/41/events","html_url":"https://github.com/theintern/leadfoot/issues/41","id":85553298,"number":41,"title":"Electron: 'dynamicViewport' and 'takesScreenshot' detection hangs the runner for 20 seconds","user":{"login":"vladikoff","id":128755,"avatar_url":"https://avatars.githubusercontent.com/u/128755?v=3","gravatar_id":"","url":"https://api.github.com/users/vladikoff","html_url":"https://github.com/vladikoff","followers_url":"https://api.github.com/users/vladikoff/followers","following_url":"https://api.github.com/users/vladikoff/following{/other_user}","gists_url":"https://api.github.com/users/vladikoff/gists{/gist_id}","starred_url":"https://api.github.com/users/vladikoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladikoff/subscriptions","organizations_url":"https://api.github.com/users/vladikoff/orgs","repos_url":"https://api.github.com/users/vladikoff/repos","events_url":"https://api.github.com/users/vladikoff/events{/privacy}","received_events_url":"https://api.github.com/users/vladikoff/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-05T15:01:19Z","updated_at":"2015-07-29T18:24:48Z","closed_at":"2015-07-29T18:24:48Z","body":"The following feature detection hangs the test runner for ~20 seconds during startup when running in the Electron environment:\r\n```\r\nif (!('dynamicViewport' in capabilities)) {\r\n  testedCapabilities.dynamicViewport = session.getWindowSize().then(function (originalSize) {\r\n    return session.setWindowSize(originalSize.width, originalSize.height);\r\n  }).then(supported, unsupported);\r\n}\r\n```\r\nRef: https://github.com/theintern/leadfoot/blob/master/Server.js#L460\r\n\r\n```\r\n// At least Selendroid 0.9.0 will fail to take screenshots in certain device configurations, usually\r\n// emulators with hardware acceleration enabled\r\ntestedCapabilities.takesScreenshot = session.takeScreenshot().then(supported, unsupported);\r\n```\r\nRef: https://github.com/theintern/leadfoot/blob/master/Server.js#L443\r\n\r\nIf I remove the 2 checks above then the tests proceed swiftly.\r\n\r\nTo reproduce see: https://github.com/vladikoff/intern-examples/tree/i3/electron-example"},"comment":{"url":"https://api.github.com/repos/theintern/leadfoot/issues/comments/126049473","html_url":"https://github.com/theintern/leadfoot/issues/41#issuecomment-126049473","issue_url":"https://api.github.com/repos/theintern/leadfoot/issues/41","id":126049473,"user":{"login":"csnover","id":229244,"avatar_url":"https://avatars.githubusercontent.com/u/229244?v=3","gravatar_id":"","url":"https://api.github.com/users/csnover","html_url":"https://github.com/csnover","followers_url":"https://api.github.com/users/csnover/followers","following_url":"https://api.github.com/users/csnover/following{/other_user}","gists_url":"https://api.github.com/users/csnover/gists{/gist_id}","starred_url":"https://api.github.com/users/csnover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csnover/subscriptions","organizations_url":"https://api.github.com/users/csnover/orgs","repos_url":"https://api.github.com/users/csnover/repos","events_url":"https://api.github.com/users/csnover/events{/privacy}","received_events_url":"https://api.github.com/users/csnover/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T18:24:48Z","updated_at":"2015-07-29T18:24:48Z","body":"You can pass `fixSessionCapabilities: false` in current versions of Leadfoot to bypass all of the detections. Otherwise, hangs on those commands should be reported to upstream to be fixed, since there isn’t anything that the client can really do if the server is just slow/hanging. #48 could be implemented to reduce this problem."}}