{"action":"created","issue":{"url":"https://api.github.com/repos/segmentio/nightmare/issues/617","repository_url":"https://api.github.com/repos/segmentio/nightmare","labels_url":"https://api.github.com/repos/segmentio/nightmare/issues/617/labels{/name}","comments_url":"https://api.github.com/repos/segmentio/nightmare/issues/617/comments","events_url":"https://api.github.com/repos/segmentio/nightmare/issues/617/events","html_url":"https://github.com/segmentio/nightmare/issues/617","id":152929998,"number":617,"title":"Grab question titles from Stackoverflow. Nightmare returns empty objects","user":{"login":"mingsterism","id":12984614,"avatar_url":"https://avatars.githubusercontent.com/u/12984614?v=3","gravatar_id":"","url":"https://api.github.com/users/mingsterism","html_url":"https://github.com/mingsterism","followers_url":"https://api.github.com/users/mingsterism/followers","following_url":"https://api.github.com/users/mingsterism/following{/other_user}","gists_url":"https://api.github.com/users/mingsterism/gists{/gist_id}","starred_url":"https://api.github.com/users/mingsterism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mingsterism/subscriptions","organizations_url":"https://api.github.com/users/mingsterism/orgs","repos_url":"https://api.github.com/users/mingsterism/repos","events_url":"https://api.github.com/users/mingsterism/events{/privacy}","received_events_url":"https://api.github.com/users/mingsterism/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-04T04:59:58Z","updated_at":"2016-05-04T16:31:00Z","closed_at":"2016-05-04T16:31:00Z","body":"Hi Guys, nightmareJs returns me empty objects when I run the code below. \r\nI want to grab the stackoverflow questions from the main page. \r\n```\r\nvar Nightmare = require('nightmare');\r\nvar startingLink = \"http://stackoverflow.com\"\r\n\r\nvar nightmare = Nightmare({show:true});\r\n\r\nnightmare \r\n    .goto(startingLink)\r\n    .evaluate(function() {\r\n        return document.getElementsByClassName('question-hyperlink')\r\n    })\r\n    .end()\r\n    .then(function(content) {\r\n        console.log(content);\r\n    })\r\n```\r\n\r\nMy Results\r\n\r\n```\r\nming_o01 (master) nightmare1 $ DEBUG=nightmare node stackoverflow.js\r\n  '48': {},\r\n  '49': {},\r\n  '50': {},\r\n  '51': {},\r\n  '52': {},\r\n  '53': {},\r\n  '54': {},\r\n  '55': {},\r\n  '56': {},\r\n  '57': {},\r\n  '58': {},\r\n  '59': {},\r\n  '60': {},\r\n  '61': {},\r\n  '62': {},\r\n  '63': {},\r\n  '64': {},\r\n  '65': {},\r\n  '66': {},\r\n  '67': {},\r\n  '68': {},\r\n  '69': {},\r\n  '70': {},\r\n  '71': {},\r\n  '72': {},\r\n  '73': {},\r\n  '74': {},\r\n  '75': {},\r\n  '76': {},\r\n  '77': {},\r\n  '78': {},\r\n  '79': {},\r\n  '80': {},\r\n  '81': {},\r\n  '82': {},\r\n  '83': {},\r\n  '84': {},\r\n  '85': {},\r\n  '86': {},\r\n  '87': {},\r\n  '88': {},\r\n  '89': {},\r\n  '90': {},\r\n  '91': {},\r\n  '92': {},\r\n  '93': {},\r\n  '94': {},\r\n  '95': {} }\r\nming_o01 (master) nightmare1 $ ^C\r\n```\r\n\r\nAppreciate any advise. Thanks. "},"comment":{"url":"https://api.github.com/repos/segmentio/nightmare/issues/comments/216920941","html_url":"https://github.com/segmentio/nightmare/issues/617#issuecomment-216920941","issue_url":"https://api.github.com/repos/segmentio/nightmare/issues/617","id":216920941,"user":{"login":"mingsterism","id":12984614,"avatar_url":"https://avatars.githubusercontent.com/u/12984614?v=3","gravatar_id":"","url":"https://api.github.com/users/mingsterism","html_url":"https://github.com/mingsterism","followers_url":"https://api.github.com/users/mingsterism/followers","following_url":"https://api.github.com/users/mingsterism/following{/other_user}","gists_url":"https://api.github.com/users/mingsterism/gists{/gist_id}","starred_url":"https://api.github.com/users/mingsterism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mingsterism/subscriptions","organizations_url":"https://api.github.com/users/mingsterism/orgs","repos_url":"https://api.github.com/users/mingsterism/repos","events_url":"https://api.github.com/users/mingsterism/events{/privacy}","received_events_url":"https://api.github.com/users/mingsterism/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T16:31:00Z","updated_at":"2016-05-04T16:31:00Z","body":"Works perfectly. "}}