{"action":"created","issue":{"url":"https://api.github.com/repos/segmentio/nightmare/issues/267","repository_url":"https://api.github.com/repos/segmentio/nightmare","labels_url":"https://api.github.com/repos/segmentio/nightmare/issues/267/labels{/name}","comments_url":"https://api.github.com/repos/segmentio/nightmare/issues/267/comments","events_url":"https://api.github.com/repos/segmentio/nightmare/issues/267/events","html_url":"https://github.com/segmentio/nightmare/issues/267","id":109709435,"number":267,"title":"Update / Electron","user":{"login":"jppope","id":5324290,"avatar_url":"https://avatars.githubusercontent.com/u/5324290?v=3","gravatar_id":"","url":"https://api.github.com/users/jppope","html_url":"https://github.com/jppope","followers_url":"https://api.github.com/users/jppope/followers","following_url":"https://api.github.com/users/jppope/following{/other_user}","gists_url":"https://api.github.com/users/jppope/gists{/gist_id}","starred_url":"https://api.github.com/users/jppope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jppope/subscriptions","organizations_url":"https://api.github.com/users/jppope/orgs","repos_url":"https://api.github.com/users/jppope/repos","events_url":"https://api.github.com/users/jppope/events{/privacy}","received_events_url":"https://api.github.com/users/jppope/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-10-04T22:38:51Z","updated_at":"2016-03-03T15:36:22Z","closed_at":"2015-10-25T19:50:33Z","body":"I don't know exactly whats going on, still pretty new doing development, but nightmare isn't working, and I'm getting this error below: \r\n\r\n```Uncaught Exception:\r\nTypeError: Error processing argument -1.\r\n    at TypeError (native)\r\n    at NavigationController.loadUrl (/Users/myusername/Desktop/nightmare/node_modules/nightmare/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/atom.asar/browser/api/lib/navigation-controller.js:59:24)\r\n    at EventEmitter.webContents.(anonymous function) [as loadUrl] (/Users/myusername/Desktop/nightmare/node_modules/nightmare/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/atom.asar/browser/api/lib/web-contents.js:79:27)\r\n    at EventEmitter.<anonymous> (/Users/myusername/Desktop/nightmare/node_modules/nightmare/lib/runner.js:87:23)\r\n    at emitOne (events.js:77:13)\r\n    at EventEmitter.emit (events.js:169:7)\r\n    at process.<anonymous> (/Users/myusername/Desktop/nightmare/node_modules/nightmare/lib/ipc.js:28:10)\r\n    at emitTwo (events.js:87:13)\r\n    at process.emit (events.js:172:7)\r\n    at handleMessage (internal/child_process.js:685:10)```\r\n\r\nEverything was fine before I updated... but I can't get the older version back"},"comment":{"url":"https://api.github.com/repos/segmentio/nightmare/issues/comments/191817295","html_url":"https://github.com/segmentio/nightmare/issues/267#issuecomment-191817295","issue_url":"https://api.github.com/repos/segmentio/nightmare/issues/267","id":191817295,"user":{"login":"matt-newell","id":7570953,"avatar_url":"https://avatars.githubusercontent.com/u/7570953?v=3","gravatar_id":"","url":"https://api.github.com/users/matt-newell","html_url":"https://github.com/matt-newell","followers_url":"https://api.github.com/users/matt-newell/followers","following_url":"https://api.github.com/users/matt-newell/following{/other_user}","gists_url":"https://api.github.com/users/matt-newell/gists{/gist_id}","starred_url":"https://api.github.com/users/matt-newell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matt-newell/subscriptions","organizations_url":"https://api.github.com/users/matt-newell/orgs","repos_url":"https://api.github.com/users/matt-newell/repos","events_url":"https://api.github.com/users/matt-newell/events{/privacy}","received_events_url":"https://api.github.com/users/matt-newell/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T15:36:21Z","updated_at":"2016-03-03T15:36:21Z","body":"Try this... passing the reference of done to the run() method should let the test run properly. \r\n\r\n```var chai = require('chai');\r\nvar Nightmare = require('nightmare');\r\nvar expect = chai.expect;\r\n\r\nmodule.exports = function() {\r\n  'use strict';\r\n\r\n  describe('anonymous users', function() {\r\n    this.timeout(20000);\r\n    var nightmare;\r\n\r\n    before(function() {\r\n      nightmare = new Nightmare({show: true});\r\n    });\r\n\r\n    describe('Start page', function () {\r\n      it('should show form when loaded', function (done) {\r\n        new Nightmare()\r\n          .goto('http://yahoo.com')\r\n          .click('.searchsubmit')\r\n          .run(**done**);\r\n      });\r\n    });\r\n  });\r\n});```"}}