{"action":"created","issue":{"url":"https://api.github.com/repos/segmentio/nightmare/issues/778","repository_url":"https://api.github.com/repos/segmentio/nightmare","labels_url":"https://api.github.com/repos/segmentio/nightmare/issues/778/labels{/name}","comments_url":"https://api.github.com/repos/segmentio/nightmare/issues/778/comments","events_url":"https://api.github.com/repos/segmentio/nightmare/issues/778/events","html_url":"https://github.com/segmentio/nightmare/issues/778","id":174865777,"number":778,"title":"Nightmare example not working","user":{"login":"hyalkaf","id":5642132,"avatar_url":"https://avatars.githubusercontent.com/u/5642132?v=3","gravatar_id":"","url":"https://api.github.com/users/hyalkaf","html_url":"https://github.com/hyalkaf","followers_url":"https://api.github.com/users/hyalkaf/followers","following_url":"https://api.github.com/users/hyalkaf/following{/other_user}","gists_url":"https://api.github.com/users/hyalkaf/gists{/gist_id}","starred_url":"https://api.github.com/users/hyalkaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyalkaf/subscriptions","organizations_url":"https://api.github.com/users/hyalkaf/orgs","repos_url":"https://api.github.com/users/hyalkaf/repos","events_url":"https://api.github.com/users/hyalkaf/events{/privacy}","received_events_url":"https://api.github.com/users/hyalkaf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-02T23:39:36Z","updated_at":"2016-09-05T23:13:57Z","closed_at":"2016-09-05T23:07:02Z","body":"Hi there,\r\n\r\nI'm trying to run nightmare example but no luck at all. This is what I have so far:\r\n\r\n```\r\nvar Nightmare = require('nightmare');\r\nvar expect = require('expect');\r\n\r\ndescribe('test yahoo search results', function() {\r\n  it('should find the nightmare github link first', function() {\r\n    var nightmare = Nightmare()\r\n    var breadcrumb = nightmare\r\n      .goto('http://yahoo.com')\r\n      .type('input[title=\"Search\"]', 'github nightmare')\r\n      .click('.searchsubmit')\r\n      .wait('.url.breadcrumb')\r\n      .evaluate(function () {\r\n        return document.querySelector('.url.breadcrumb').innerText;\r\n      })\r\n      .then(function(result) {\r\n          return result;\r\n      });\r\n    expect(breadcrumb).toEqual('github.com');\r\n  });\r\n});\r\n```\r\n\r\nThis fails and says Error: Expected {} to equal 'github.com'\r\n\r\nTrying out the example posted in the readme timeouts."},"comment":{"url":"https://api.github.com/repos/segmentio/nightmare/issues/comments/244820323","html_url":"https://github.com/segmentio/nightmare/issues/778#issuecomment-244820323","issue_url":"https://api.github.com/repos/segmentio/nightmare/issues/778","id":244820323,"user":{"login":"hyalkaf","id":5642132,"avatar_url":"https://avatars.githubusercontent.com/u/5642132?v=3","gravatar_id":"","url":"https://api.github.com/users/hyalkaf","html_url":"https://github.com/hyalkaf","followers_url":"https://api.github.com/users/hyalkaf/followers","following_url":"https://api.github.com/users/hyalkaf/following{/other_user}","gists_url":"https://api.github.com/users/hyalkaf/gists{/gist_id}","starred_url":"https://api.github.com/users/hyalkaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyalkaf/subscriptions","organizations_url":"https://api.github.com/users/hyalkaf/orgs","repos_url":"https://api.github.com/users/hyalkaf/repos","events_url":"https://api.github.com/users/hyalkaf/events{/privacy}","received_events_url":"https://api.github.com/users/hyalkaf/received_events","type":"User","site_admin":false},"created_at":"2016-09-05T23:13:57Z","updated_at":"2016-09-05T23:13:57Z","body":"The example you gave worked fine but when I try it on a different test I still get the timeout. Here is my code: \r\n\r\n```\r\ndescribe('Login Page', function() {\r\n  it('username and password should log you into the dashboard', function(done) {\r\n    var nightmare = Nightmare()\r\n      .goto(CONST.url)\r\n      .type(CONST.usernameID, CONST.username) // enter user name\r\n      .type(CONST.passID, CONST.password) // enter password\r\n      .click(CONST.loginButtonID) // click log in\r\n      .wait(TESTCONST.IDToCheckAfterLogin) // wait for dashboard to come up\r\n      .evaluate(function () {     // Select dashboard title and return text \r\n          return document.querySelector(TESTCONST.mainPageDashBoardElementSelector).innerText;\r\n      })\r\n      .then(function(result) {\r\n        // assert\r\n        expect(result).toEqual(TESTCONST.dashboard);\r\n        done();\r\n      });    \r\n  });\r\n});\r\n```\r\n\r\nI'm trying to login to Wordpress but no it timeouts"}}
{"actor":{"display_login":"hyalkaf"}}