{"action":"created","issue":{"url":"https://api.github.com/repos/johntitus/node-horseman/issues/44","labels_url":"https://api.github.com/repos/johntitus/node-horseman/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/johntitus/node-horseman/issues/44/comments","events_url":"https://api.github.com/repos/johntitus/node-horseman/issues/44/events","html_url":"https://github.com/johntitus/node-horseman/issues/44","id":107380165,"number":44,"title":"`waitForNextPage` doesn't work","user":{"login":"edge","id":6856710,"avatar_url":"https://avatars.githubusercontent.com/u/6856710?v=3","gravatar_id":"","url":"https://api.github.com/users/edge","html_url":"https://github.com/edge","followers_url":"https://api.github.com/users/edge/followers","following_url":"https://api.github.com/users/edge/following{/other_user}","gists_url":"https://api.github.com/users/edge/gists{/gist_id}","starred_url":"https://api.github.com/users/edge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edge/subscriptions","organizations_url":"https://api.github.com/users/edge/orgs","repos_url":"https://api.github.com/users/edge/repos","events_url":"https://api.github.com/users/edge/events{/privacy}","received_events_url":"https://api.github.com/users/edge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-20T08:44:29Z","updated_at":"2015-09-21T13:56:00Z","closed_at":null,"body":"I've been trying to use `waitForNextPage`, but it doesn't work as expected.\r\n\r\nIn your links example, if you change [this line](https://github.com/johntitus/node-horseman/blob/master/examples/links.js#L69) to\r\n```js\r\nreturn horseman.waitForNextPage();\r\n```\r\nthe screenshot will give you an unfinished page. The same occurs with the pizza example.\r\n\r\nSo far I've been able to hack it out with `waitForSelector`, but that's highly prone to error.\r\n\r\nHorseman ends my long search for an up-to-date Phantom driver, but this bug renders it almost unusable.\r\n\r\nI'm on Phantom 2.0.0."},"comment":{"url":"https://api.github.com/repos/johntitus/node-horseman/issues/comments/141987238","html_url":"https://github.com/johntitus/node-horseman/issues/44#issuecomment-141987238","issue_url":"https://api.github.com/repos/johntitus/node-horseman/issues/44","id":141987238,"user":{"login":"johntitus","id":590334,"avatar_url":"https://avatars.githubusercontent.com/u/590334?v=3","gravatar_id":"","url":"https://api.github.com/users/johntitus","html_url":"https://github.com/johntitus","followers_url":"https://api.github.com/users/johntitus/followers","following_url":"https://api.github.com/users/johntitus/following{/other_user}","gists_url":"https://api.github.com/users/johntitus/gists{/gist_id}","starred_url":"https://api.github.com/users/johntitus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johntitus/subscriptions","organizations_url":"https://api.github.com/users/johntitus/orgs","repos_url":"https://api.github.com/users/johntitus/repos","events_url":"https://api.github.com/users/johntitus/events{/privacy}","received_events_url":"https://api.github.com/users/johntitus/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T13:56:00Z","updated_at":"2015-09-21T13:56:00Z","body":"If you get a chance, can you try your test with the latest master?  I hooked into the PhantomJS onLoadFinished event so it should be a lot more accurate now.  I'll hold off on publishing it to NPM until you've had a chance to try it out, or a few days, whichever comes first."}}