{"action":"created","issue":{"url":"https://api.github.com/repos/segmentio/nightmare/issues/877","repository_url":"https://api.github.com/repos/segmentio/nightmare","labels_url":"https://api.github.com/repos/segmentio/nightmare/issues/877/labels{/name}","comments_url":"https://api.github.com/repos/segmentio/nightmare/issues/877/comments","events_url":"https://api.github.com/repos/segmentio/nightmare/issues/877/events","html_url":"https://github.com/segmentio/nightmare/issues/877","id":187943667,"number":877,"title":"Promise pending","user":{"login":"albus01","id":12758136,"avatar_url":"https://avatars.githubusercontent.com/u/12758136?v=3","gravatar_id":"","url":"https://api.github.com/users/albus01","html_url":"https://github.com/albus01","followers_url":"https://api.github.com/users/albus01/followers","following_url":"https://api.github.com/users/albus01/following{/other_user}","gists_url":"https://api.github.com/users/albus01/gists{/gist_id}","starred_url":"https://api.github.com/users/albus01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albus01/subscriptions","organizations_url":"https://api.github.com/users/albus01/orgs","repos_url":"https://api.github.com/users/albus01/repos","events_url":"https://api.github.com/users/albus01/events{/privacy}","received_events_url":"https://api.github.com/users/albus01/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-08T09:39:47Z","updated_at":"2016-11-09T04:26:15Z","closed_at":"2016-11-09T04:21:26Z","body":"Hello, I am a novice, and I have some questions to ask you.\r\n\r\nI put the logic in the configuration file in order to modify later, and here is my code:\r\n```\r\n    //Pretending that these are configuration files\r\n    var aas = [\r\n        ['wait', '#main'],\r\n        ['then', function(res) { console.log('finish'); }]\r\n    ]\r\n    //end configuration files\r\n\r\n    var current = nightmare.goto('http://yahoo.com/');\r\n\r\n    for (var i = 0; i < aas.length; i++) {\r\n        var action = aas[i][0];\r\n        var arg    = aas[i].slice(0, aas[i].length);\r\n        current = current[action].apply(current, arg);\r\n        console.log(current);\r\n    }\r\n```\r\n\r\nAnd the output is: Promise { <pending> }.\r\nCan you tell me how to solve the problem?"},"comment":{"url":"https://api.github.com/repos/segmentio/nightmare/issues/comments/259331515","html_url":"https://github.com/segmentio/nightmare/issues/877#issuecomment-259331515","issue_url":"https://api.github.com/repos/segmentio/nightmare/issues/877","id":259331515,"user":{"login":"albus01","id":12758136,"avatar_url":"https://avatars.githubusercontent.com/u/12758136?v=3","gravatar_id":"","url":"https://api.github.com/users/albus01","html_url":"https://github.com/albus01","followers_url":"https://api.github.com/users/albus01/followers","following_url":"https://api.github.com/users/albus01/following{/other_user}","gists_url":"https://api.github.com/users/albus01/gists{/gist_id}","starred_url":"https://api.github.com/users/albus01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albus01/subscriptions","organizations_url":"https://api.github.com/users/albus01/orgs","repos_url":"https://api.github.com/users/albus01/repos","events_url":"https://api.github.com/users/albus01/events{/privacy}","received_events_url":"https://api.github.com/users/albus01/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T04:26:15Z","updated_at":"2016-11-09T04:26:15Z","body":"Solved."}}
{"actor":{"display_login":"albus01"}}