{"action":"created","issue":{"url":"https://api.github.com/repos/zeekay/joseph/issues/1","repository_url":"https://api.github.com/repos/zeekay/joseph","labels_url":"https://api.github.com/repos/zeekay/joseph/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/zeekay/joseph/issues/1/comments","events_url":"https://api.github.com/repos/zeekay/joseph/issues/1/events","html_url":"https://github.com/zeekay/joseph/issues/1","id":170923075,"number":1,"title":"Working with Nightmare 2.6.1?","user":{"login":"adityabansod","id":618330,"avatar_url":"https://avatars.githubusercontent.com/u/618330?v=3","gravatar_id":"","url":"https://api.github.com/users/adityabansod","html_url":"https://github.com/adityabansod","followers_url":"https://api.github.com/users/adityabansod/followers","following_url":"https://api.github.com/users/adityabansod/following{/other_user}","gists_url":"https://api.github.com/users/adityabansod/gists{/gist_id}","starred_url":"https://api.github.com/users/adityabansod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adityabansod/subscriptions","organizations_url":"https://api.github.com/users/adityabansod/orgs","repos_url":"https://api.github.com/users/adityabansod/repos","events_url":"https://api.github.com/users/adityabansod/events{/privacy}","received_events_url":"https://api.github.com/users/adityabansod/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-12T17:46:01Z","updated_at":"2016-08-27T15:32:49Z","closed_at":null,"body":"I'm trying a simple script of this against the latest Nightmare (2.6.1) and not having any luck with even the Nightmare examples when this plugin is used:\r\n\r\n```javascript\r\nvar Nightmare = require('joseph')(require('nightmare'));\r\nvar nightmare = Nightmare({\r\n\tshow: true,\r\n\t'ignore-certificate-errors': true,\r\n\t'web-security': false,\r\n\t'allow-displaying-insecure-content': true,\r\n\topenDevTools: {\r\n\t\tmode: 'detach'\r\n\t}\r\n});\r\n\r\nnightmare\r\n  .goto('http://yahoo.com')\r\n  .type('form[action*=\"/search\"] [name=p]', 'github nightmare')\r\n  .click('form[action*=\"/search\"] [type=submit]')\r\n  .wait('#main')\r\n  .evaluate(function () {\r\n    return document.querySelector('#main .searchCenterMiddle li a').href\r\n  })\r\n  .end()\r\n  .then(function (result) {\r\n    console.log(result)\r\n  })\r\n  .catch(function (error) {\r\n    console.error('Search failed:', error);\r\n  });\r\n```\r\n\r\nThe code inside of `evaluate` is never executed on the page and the sequence hangs. \r\n\r\nIf I remove the `require('jospeh')` and just used Nightmare on its own it works fine."},"comment":{"url":"https://api.github.com/repos/zeekay/joseph/issues/comments/242923799","html_url":"https://github.com/zeekay/joseph/issues/1#issuecomment-242923799","issue_url":"https://api.github.com/repos/zeekay/joseph/issues/1","id":242923799,"user":{"login":"ambethia","id":298,"avatar_url":"https://avatars.githubusercontent.com/u/298?v=3","gravatar_id":"","url":"https://api.github.com/users/ambethia","html_url":"https://github.com/ambethia","followers_url":"https://api.github.com/users/ambethia/followers","following_url":"https://api.github.com/users/ambethia/following{/other_user}","gists_url":"https://api.github.com/users/ambethia/gists{/gist_id}","starred_url":"https://api.github.com/users/ambethia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ambethia/subscriptions","organizations_url":"https://api.github.com/users/ambethia/orgs","repos_url":"https://api.github.com/users/ambethia/repos","events_url":"https://api.github.com/users/ambethia/events{/privacy}","received_events_url":"https://api.github.com/users/ambethia/received_events","type":"User","site_admin":false},"created_at":"2016-08-27T15:32:49Z","updated_at":"2016-08-27T15:32:49Z","body":"Any updates? I just ran into an issue where I need to do asynchronous evals in Nightmare. Thanks! I'll lend a hand if I can."}}
{"actor":{"display_login":"ambethia"}}