{"action":"created","issue":{"url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/570","labels_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/570/labels{/name}","comments_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/570/comments","events_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/570/events","html_url":"https://github.com/nightwatchjs/nightwatch/issues/570","id":96183338,"number":570,"title":"Problems with Page Objects","user":{"login":"zigjay","id":7318285,"avatar_url":"https://avatars.githubusercontent.com/u/7318285?v=3","gravatar_id":"","url":"https://api.github.com/users/zigjay","html_url":"https://github.com/zigjay","followers_url":"https://api.github.com/users/zigjay/followers","following_url":"https://api.github.com/users/zigjay/following{/other_user}","gists_url":"https://api.github.com/users/zigjay/gists{/gist_id}","starred_url":"https://api.github.com/users/zigjay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zigjay/subscriptions","organizations_url":"https://api.github.com/users/zigjay/orgs","repos_url":"https://api.github.com/users/zigjay/repos","events_url":"https://api.github.com/users/zigjay/events{/privacy}","received_events_url":"https://api.github.com/users/zigjay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-20T23:01:15Z","updated_at":"2015-07-20T23:07:34Z","closed_at":null,"body":"Hi!\r\n\r\nI just upgraded to Nightwatch 0.7.9 to take advantage of the new page object support. \r\n\r\nI understand you have to define a page object's behavior (functions) in the commands-property. \r\n\r\nvar loginCommands = {\r\n  load: function () {    \r\n    return this.client;    \r\n  }\r\n\r\nmodule.exports = {\r\n  commands: [loginCommands]\r\n};\r\n\r\nWhen I try to run a simple test that leverages the page object \r\n\r\nvar login = client.page.login();\r\nlogin.load()\r\n\r\nI get the error\r\n\r\nTypeError: Object #<Object> has no method 'load'\r\n\r\nCould this be an issue of Nightwatch or am I just overseeing something?\r\n\r\nCheers & thanks,\r\nJohannes"},"comment":{"url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/comments/123083927","html_url":"https://github.com/nightwatchjs/nightwatch/issues/570#issuecomment-123083927","issue_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/570","id":123083927,"user":{"login":"zigjay","id":7318285,"avatar_url":"https://avatars.githubusercontent.com/u/7318285?v=3","gravatar_id":"","url":"https://api.github.com/users/zigjay","html_url":"https://github.com/zigjay","followers_url":"https://api.github.com/users/zigjay/followers","following_url":"https://api.github.com/users/zigjay/following{/other_user}","gists_url":"https://api.github.com/users/zigjay/gists{/gist_id}","starred_url":"https://api.github.com/users/zigjay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zigjay/subscriptions","organizations_url":"https://api.github.com/users/zigjay/orgs","repos_url":"https://api.github.com/users/zigjay/repos","events_url":"https://api.github.com/users/zigjay/events{/privacy}","received_events_url":"https://api.github.com/users/zigjay/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T23:07:34Z","updated_at":"2015-07-20T23:07:34Z","body":"Good question.\r\nNo. \r\nI'm currently in the process of refactoring my code that uses \"nightwatch-pages\": \"0.0.1\" to pure Nightwatch.js. Thought it wouldn't matter to have no elements for just some testing.\r\n\r\nDoes it?"}}