{"action":"created","issue":{"url":"https://api.github.com/repos/beatfactor/nightwatch/issues/446","labels_url":"https://api.github.com/repos/beatfactor/nightwatch/issues/446/labels{/name}","comments_url":"https://api.github.com/repos/beatfactor/nightwatch/issues/446/comments","events_url":"https://api.github.com/repos/beatfactor/nightwatch/issues/446/events","html_url":"https://github.com/beatfactor/nightwatch/issues/446","id":75746472,"number":446,"title":"getLog missing and tests failing (possibly related to e4d8f2accdcbf9c5)","user":{"login":"michaelerobertsjr","id":4172887,"avatar_url":"https://avatars.githubusercontent.com/u/4172887?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelerobertsjr","html_url":"https://github.com/michaelerobertsjr","followers_url":"https://api.github.com/users/michaelerobertsjr/followers","following_url":"https://api.github.com/users/michaelerobertsjr/following{/other_user}","gists_url":"https://api.github.com/users/michaelerobertsjr/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelerobertsjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelerobertsjr/subscriptions","organizations_url":"https://api.github.com/users/michaelerobertsjr/orgs","repos_url":"https://api.github.com/users/michaelerobertsjr/repos","events_url":"https://api.github.com/users/michaelerobertsjr/events{/privacy}","received_events_url":"https://api.github.com/users/michaelerobertsjr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/beatfactor/nightwatch/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-12T21:31:23Z","updated_at":"2015-05-13T17:39:34Z","closed_at":"2015-05-12T21:38:53Z","body":"**ISSUE**\r\nI was unable to use getLog, getLogTypes, etc.  Nightwatch package tests are failing.  Possibly related to the same issue???\r\n\r\n**SYSTEM SETTINGS**\r\n* Mac OS X\r\n* Nightwatch 0.6.8\r\n* Phantom 2.0.0\r\n* Selenium server standalone 2.43.1\r\n\r\n**STEPS TO REPRODUCE**\r\n* Create a test spec containing:\r\n \r\n```javascript\r\nthis.demoTest = function(browser) {\r\n  browser.isLogAvailable('browser', function(isAvailable) {\r\n   // do something more in here\r\n});\r\n}\r\n```\r\n* Run the test using phantomjs, firefox, or chromedriver\r\n\r\n* Actual Results:\r\n```\r\nTypeError: undefined is not a function\r\n```\r\n\r\n**ADDITIONAL INFO**\r\nWhen I console the Browser object to inspect its contents I do not see the functions expected on the object. While troubleshooting I ran the tests on the nightwatch package and found I am getting similar errors:\r\n\r\n```\r\n> nightwatch@0.6.8 test /Users/michael/.npm-packages/lib/node_modules/nightwatch\r\n> node ./tests/run_tests.js\r\n\r\nTypeError: undefined is not a function\r\n    at Object.<anonymous> (/Users/michael/.npm-packages/lib/node_modules/nightwatch/tests/run_tests.js:28:38)\r\n    at Module._compile (module.js:460:26)\r\n    at Object.Module._extensions..js (module.js:478:10)\r\n    at Module.load (module.js:355:32)\r\n    at Function.Module._load (module.js:310:12)\r\n    at Function.Module.runMain (module.js:501:10)\r\n    at startup (node.js:129:16)\r\n    at node.js:814:3\r\nnpm ERR! Test failed.  See above for more details.\r\n```"},"comment":{"url":"https://api.github.com/repos/beatfactor/nightwatch/issues/comments/101755329","html_url":"https://github.com/beatfactor/nightwatch/issues/446#issuecomment-101755329","issue_url":"https://api.github.com/repos/beatfactor/nightwatch/issues/446","id":101755329,"user":{"login":"michaelerobertsjr","id":4172887,"avatar_url":"https://avatars.githubusercontent.com/u/4172887?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelerobertsjr","html_url":"https://github.com/michaelerobertsjr","followers_url":"https://api.github.com/users/michaelerobertsjr/followers","following_url":"https://api.github.com/users/michaelerobertsjr/following{/other_user}","gists_url":"https://api.github.com/users/michaelerobertsjr/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelerobertsjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelerobertsjr/subscriptions","organizations_url":"https://api.github.com/users/michaelerobertsjr/orgs","repos_url":"https://api.github.com/users/michaelerobertsjr/repos","events_url":"https://api.github.com/users/michaelerobertsjr/events{/privacy}","received_events_url":"https://api.github.com/users/michaelerobertsjr/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T17:39:34Z","updated_at":"2015-05-13T17:39:34Z","body":"I am able to consistently reproduce errors, and it appears it was the installation process.\r\n\r\nI initially installed the package using \r\n```\r\n$ npm install nightwatch -g\r\n```\r\nwhich does not work!  If you go into the global install folder and try to do an npm install and npm test, you will get failures.  In fact the npm wont have all its dependencies from the package.json....\r\n\r\nIf you cannot install this package with npm install, or npm install -g maybe you should add that in the docs."}}