{"action":"created","issue":{"url":"https://api.github.com/repos/segmentio/nightmare/issues/887","repository_url":"https://api.github.com/repos/segmentio/nightmare","labels_url":"https://api.github.com/repos/segmentio/nightmare/issues/887/labels{/name}","comments_url":"https://api.github.com/repos/segmentio/nightmare/issues/887/comments","events_url":"https://api.github.com/repos/segmentio/nightmare/issues/887/events","html_url":"https://github.com/segmentio/nightmare/issues/887","id":189161377,"number":887,"title":"How to access electron instance","user":{"login":"zatziky","id":2794365,"avatar_url":"https://avatars.githubusercontent.com/u/2794365?v=3","gravatar_id":"","url":"https://api.github.com/users/zatziky","html_url":"https://github.com/zatziky","followers_url":"https://api.github.com/users/zatziky/followers","following_url":"https://api.github.com/users/zatziky/following{/other_user}","gists_url":"https://api.github.com/users/zatziky/gists{/gist_id}","starred_url":"https://api.github.com/users/zatziky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zatziky/subscriptions","organizations_url":"https://api.github.com/users/zatziky/orgs","repos_url":"https://api.github.com/users/zatziky/repos","events_url":"https://api.github.com/users/zatziky/events{/privacy}","received_events_url":"https://api.github.com/users/zatziky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-14T16:40:11Z","updated_at":"2016-11-20T16:56:20Z","closed_at":null,"body":"Is there a way to access electron instance so that we could fire keaboard events:\r\n```\r\n\r\nbrowserWindow.webContents.sendInputEvent({\r\n  type: \"keyDown\",\r\n  keyCode: '\\u0008'\r\n});\r\n```\r\n\r\nThe example is from https://github.com/electron/electron/issues/2269"},"comment":{"url":"https://api.github.com/repos/segmentio/nightmare/issues/comments/261789884","html_url":"https://github.com/segmentio/nightmare/issues/887#issuecomment-261789884","issue_url":"https://api.github.com/repos/segmentio/nightmare/issues/887","id":261789884,"user":{"login":"rosshinkley","id":1823131,"avatar_url":"https://avatars.githubusercontent.com/u/1823131?v=3","gravatar_id":"","url":"https://api.github.com/users/rosshinkley","html_url":"https://github.com/rosshinkley","followers_url":"https://api.github.com/users/rosshinkley/followers","following_url":"https://api.github.com/users/rosshinkley/following{/other_user}","gists_url":"https://api.github.com/users/rosshinkley/gists{/gist_id}","starred_url":"https://api.github.com/users/rosshinkley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rosshinkley/subscriptions","organizations_url":"https://api.github.com/users/rosshinkley/orgs","repos_url":"https://api.github.com/users/rosshinkley/repos","events_url":"https://api.github.com/users/rosshinkley/events{/privacy}","received_events_url":"https://api.github.com/users/rosshinkley/received_events","type":"User","site_admin":false},"created_at":"2016-11-20T16:56:20Z","updated_at":"2016-11-20T16:56:20Z","body":"Is [`.action()`](https://github.com/segmentio/nightmare#nightmareactionname-electronactionelectronnamespace-actionnamespace) what you're after?  That gives you the ability to define custom actions on the Electron instance."}}
{"actor":{"display_login":"rosshinkley"}}