{"action":"created","issue":{"url":"https://api.github.com/repos/metaskills/mocha-phantomjs/issues/176","labels_url":"https://api.github.com/repos/metaskills/mocha-phantomjs/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/metaskills/mocha-phantomjs/issues/176/comments","events_url":"https://api.github.com/repos/metaskills/mocha-phantomjs/issues/176/events","html_url":"https://github.com/metaskills/mocha-phantomjs/pull/176","id":58947600,"number":176,"title":"Adding sendEvent to the callPhantom callback","user":{"login":"docmarionum1","id":178798,"avatar_url":"https://avatars.githubusercontent.com/u/178798?v=3","gravatar_id":"","url":"https://api.github.com/users/docmarionum1","html_url":"https://github.com/docmarionum1","followers_url":"https://api.github.com/users/docmarionum1/followers","following_url":"https://api.github.com/users/docmarionum1/following{/other_user}","gists_url":"https://api.github.com/users/docmarionum1/gists{/gist_id}","starred_url":"https://api.github.com/users/docmarionum1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docmarionum1/subscriptions","organizations_url":"https://api.github.com/users/docmarionum1/orgs","repos_url":"https://api.github.com/users/docmarionum1/repos","events_url":"https://api.github.com/users/docmarionum1/events{/privacy}","received_events_url":"https://api.github.com/users/docmarionum1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-25T18:26:38Z","updated_at":"2015-02-26T12:27:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/metaskills/mocha-phantomjs/pulls/176","html_url":"https://github.com/metaskills/mocha-phantomjs/pull/176","diff_url":"https://github.com/metaskills/mocha-phantomjs/pull/176.diff","patch_url":"https://github.com/metaskills/mocha-phantomjs/pull/176.patch"},"body":"I needed to be able to request events be sent to the phantom web page from inside my tests, so I added it as an option in the callPhantom callback.  "},"comment":{"url":"https://api.github.com/repos/metaskills/mocha-phantomjs/issues/comments/76169811","html_url":"https://github.com/metaskills/mocha-phantomjs/pull/176#issuecomment-76169811","issue_url":"https://api.github.com/repos/metaskills/mocha-phantomjs/issues/176","id":76169811,"user":{"login":"docmarionum1","id":178798,"avatar_url":"https://avatars.githubusercontent.com/u/178798?v=3","gravatar_id":"","url":"https://api.github.com/users/docmarionum1","html_url":"https://github.com/docmarionum1","followers_url":"https://api.github.com/users/docmarionum1/followers","following_url":"https://api.github.com/users/docmarionum1/following{/other_user}","gists_url":"https://api.github.com/users/docmarionum1/gists{/gist_id}","starred_url":"https://api.github.com/users/docmarionum1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docmarionum1/subscriptions","organizations_url":"https://api.github.com/users/docmarionum1/orgs","repos_url":"https://api.github.com/users/docmarionum1/repos","events_url":"https://api.github.com/users/docmarionum1/events{/privacy}","received_events_url":"https://api.github.com/users/docmarionum1/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T12:27:28Z","updated_at":"2015-02-26T12:27:28Z","body":"No, it's not ideal, but there are several outstanding bugs in webkit related to simulating keyboard events. \r\n\r\nAt least:\r\n\r\nhttps://bugs.webkit.org/show_bug.cgi?id=16735\r\nhttps://bugs.webkit.org/show_bug.cgi?id=13368\r\n\r\nSimulating the event from outside the page (i.e. from phantom) seems to be the best option.   "}}