{"_id":"grunt-mocha-selenium","_rev":"27-74a291a3b1bce06e39e00fb09c6f7d20","name":"grunt-mocha-selenium","description":"Run functional Mocha tests with webdriver against a local selenium instance.","dist-tags":{"latest":"1.0.1"},"versions":{"0.0.1":{"name":"grunt-mocha-selenium","version":"0.0.1","description":"Run functional Mocha tests with webdriver against a local selenium instance.","homepage":"https://github.com/wookiehangover/grunt-mocha-selenium","bugs":{"url":"https://github.com/wookiehangover/grunt-mocha-selenium/issues"},"author":{"name":"Sam Breed","email":"sam@quickleft.com"},"keywords":["gruntplugin"],"main":"Gruntfile.js","repository":{"type":"git","url":"https://github.com/wookiehangover/grunt-mocha-selenium"},"licenses":[{"type":"MIT"}],"devDependencies":{"grunt-contrib-jshint":"~0.2.0","async":"~0.2.9"},"scripts":{"test":"grunt test"},"dependencies":{"selenium-launcher":"~1.1.6","wd":"0.0.34","mocha":"~1.12.0"},"_id":"grunt-mocha-selenium@0.0.1","dist":{"shasum":"8009f19b8abf9d0af9fe16435c9d8347f1888d3d","tarball":"https://registry.npmjs.org/grunt-mocha-selenium/-/grunt-mocha-selenium-0.0.1.tgz","integrity":"sha512-2FLM1AFWaGCIbpwwRCqk9nH1VfmMUdpR9qwYU+C1a/zFJKDY88fOW+axC/Zvq/IEWUwuyYKzqLhiHzvLPpu20Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGwFtjc/2v8WD05JO52YZ06W1HupbsWRNeicqJe4J8qkAiB9QzvjofiHBFUrF64eeob4bbOosHR6g6cbKJWEQUuRRg=="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"wookiehangover","email":"sam@quickleft.com"},"maintainers":[{"name":"wookiehangover","email":"sam@quickleft.com"}]},"0.2.0":{"name":"grunt-mocha-selenium","version":"0.2.0","description":"Run functional Mocha tests with webdriver against a local selenium instance.","homepage":"https://github.com/wookiehangover/grunt-mocha-selenium","bugs":{"url":"https://github.com/wookiehangover/grunt-mocha-selenium/issues"},"author":{"name":"Sam Breed","email":"sam@quickleft.com"},"keywords":["gruntplugin"],"main":"Gruntfile.js","repository":{"type":"git","url":"https://github.com/wookiehangover/grunt-mocha-selenium"},"licenses":[{"type":"MIT"}],"devDependencies":{"grunt-contrib-jshint":"~0.2.0","async":"~0.2.9"},"scripts":{"test":"grunt test"},"dependencies":{"selenium-launcher":"git://github.com/wookiehangover/nodejs-selenium-launcher.git","wd":"0.0.34","mocha":"~1.12.0"},"_id":"grunt-mocha-selenium@0.2.0","dist":{"shasum":"43f1e45afbfd98f33b76760aa21cd343a5073898","tarball":"https://registry.npmjs.org/grunt-mocha-selenium/-/grunt-mocha-selenium-0.2.0.tgz","integrity":"sha512-hBJVbk39fexjmtIXeJEXMpmBfgg/3RPH6b7uO1alRstPYLupIQoDZwrTEDnwGTqsacaJYohIct1ATRbqrDrLIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGTLPjd+Ws1SrUhXJdFSSz3Ap+JvP3dLfS8JgIKCaPnwIhAIBNV5cJ89W2WgO24xVWgxylU6Puv4ZgcQfxVga1sCjP"}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"wookiehangover","email":"sam@quickleft.com"},"maintainers":[{"name":"wookiehangover","email":"sam@quickleft.com"}]},"0.2.1":{"name":"grunt-mocha-selenium","version":"0.2.1","description":"Run functional Mocha tests with webdriver against a local selenium instance.","homepage":"https://github.com/wookiehangover/grunt-mocha-selenium","bugs":{"url":"https://github.com/wookiehangover/grunt-mocha-selenium/issues"},"author":{"name":"Sam Breed","email":"sam@quickleft.com"},"keywords":["gruntplugin"],"main":"Gruntfile.js","repository":{"type":"git","url":"https://github.com/wookiehangover/grunt-mocha-selenium"},"licenses":[{"type":"MIT"}],"devDependencies":{"grunt-contrib-jshint":"~0.2.0","async":"~0.2.9"},"scripts":{"test":"grunt test"},"dependencies":{"selenium-launcher":"git://github.com/wookiehangover/nodejs-selenium-launcher.git","wd":"0.0.34","mocha":"~1.12.0"},"_id":"grunt-mocha-selenium@0.2.1","dist":{"shasum":"b6b96f6e606a36e2eccfdad715a01fcc344430c3","tarball":"https://registry.npmjs.org/grunt-mocha-selenium/-/grunt-mocha-selenium-0.2.1.tgz","integrity":"sha512-EunPK39hnh3OVWH6MFjApPFEL5gC8AsArWFW/mMbmDNi8IVYxkfQfKQm6SrSvfzCtT/bTSm/jAyc7sBDiDq8Qw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxYmYoFAlo/1obIiyOiDx/OVSejfB5uwV9Lj1dcut3JQIhAJirlUxSG4X+WHwGlwo+jciKjWIVyy9lhT14Q83k55z+"}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"wookiehangover","email":"sam@quickleft.com"},"maintainers":[{"name":"wookiehangover","email":"sam@quickleft.com"}]},"0.3.0":{"name":"grunt-mocha-selenium","version":"0.3.0","description":"Run functional Mocha tests with webdriver against a local selenium instance.","homepage":"https://github.com/wookiehangover/grunt-mocha-selenium","bugs":{"url":"https://github.com/wookiehangover/grunt-mocha-selenium/issues"},"author":{"name":"Sam Breed","email":"sam@quickleft.com"},"keywords":["gruntplugin"],"main":"Gruntfile.js","repository":{"type":"git","url":"https://github.com/wookiehangover/grunt-mocha-selenium"},"licenses":[{"type":"MIT"}],"devDependencies":{"grunt-contrib-jshint":"~0.2.0"},"scripts":{"test":"grunt test"},"dependencies":{"selenium-launcher":"git://github.com/drd/nodejs-selenium-launcher.git","wd":"~0.1.0","mocha":"~1.12.0","phantomjs":"~1.9.1","async":"~0.2.9"},"_id":"grunt-mocha-selenium@0.3.0","dist":{"shasum":"73744635c41b2c532a28ce8cf82ca39b428e3dcf","tarball":"https://registry.npmjs.org/grunt-mocha-selenium/-/grunt-mocha-selenium-0.3.0.tgz","integrity":"sha512-uoPDWVbEACW4eNRpWBADtyNyCMZH3LSuwxFfHdaxf+L6e2E2AgD5UmHAM678DS3wXsBmlxUluJ+P25gxWVYoPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5INY5qY+68x0OaSMZJfgh8ZmPvsVW0K207bMjQU4kZAIhAMniZmOgbshRlxjhuTMgAKM7aBVY2rbsI6Qr2ykmxyOZ"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"wookiehangover","email":"sam@quickleft.com"},"maintainers":[{"name":"wookiehangover","email":"sam@quickleft.com"}]},"0.4.0":{"name":"grunt-mocha-selenium","version":"0.4.0","description":"Run functional Mocha tests with webdriver against a local selenium instance.","homepage":"https://github.com/wookiehangover/grunt-mocha-selenium","bugs":{"url":"https://github.com/wookiehangover/grunt-mocha-selenium/issues"},"author":{"name":"Sam Breed","email":"sam@quickleft.com"},"keywords":["gruntplugin","selenium","mocha","appium","testing"],"main":"Gruntfile.js","repository":{"type":"git","url":"https://github.com/wookiehangover/grunt-mocha-selenium"},"licenses":[{"type":"MIT"}],"devDependencies":{"grunt-contrib-jshint":"~0.2.0"},"scripts":{"test":"grunt test"},"dependencies":{"selenium-launcher":"git://github.com/drd/nodejs-selenium-launcher.git","wd":"~0.1.0","mocha":"~1.12.0","phantomjs":"~1.9.1","async":"~0.2.9","freeport":"~1.0.2"},"_id":"grunt-mocha-selenium@0.4.0","dist":{"shasum":"83954205bcea5f55ac01cab935c58f4324a077ad","tarball":"https://registry.npmjs.org/grunt-mocha-selenium/-/grunt-mocha-selenium-0.4.0.tgz","integrity":"sha512-PWhhDcnsB18oYXhJMTMScvqhHzXQ3zkIon25BYe1ZdEsZmqR4hr5/twIwe7ZSoDJFRFmH90WNgOPuys2ZzF00w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3E4CQ5fcMo2oD4Jf/Y603jZYl61a6aid3ofeeAzrMyAIhAONBLB1EnLkGJcj8mjWlpiV8mr97jef4+fJZc6t0Gmnd"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"wookiehangover","email":"sam@quickleft.com"},"maintainers":[{"name":"wookiehangover","email":"sam@quickleft.com"}]},"0.5.0":{"name":"grunt-mocha-selenium","version":"0.5.0","description":"Run functional Mocha tests with webdriver against a local selenium instance.","homepage":"https://github.com/wookiehangover/grunt-mocha-selenium","bugs":{"url":"https://github.com/wookiehangover/grunt-mocha-selenium/issues"},"author":{"name":"Sam Breed","email":"sam@quickleft.com"},"keywords":["gruntplugin","selenium","mocha","appium","testing"],"main":"Gruntfile.js","repository":{"type":"git","url":"https://github.com/wookiehangover/grunt-mocha-selenium"},"licenses":[{"type":"MIT"}],"devDependencies":{"grunt-contrib-jshint":"~0.2.0"},"scripts":{"test":"grunt test"},"dependencies":{"selenium-launcher":"git://github.com/drd/nodejs-selenium-launcher.git","wd":"~0.2.0","mocha":"~1.12.0","phantomjs":"~1.9.1","async":"~0.2.9","freeport":"~1.0.2"},"_id":"grunt-mocha-selenium@0.5.0","dist":{"shasum":"c746e2952657621ab5e90f1f85bc7eadeb1e7897","tarball":"https://registry.npmjs.org/grunt-mocha-selenium/-/grunt-mocha-selenium-0.5.0.tgz","integrity":"sha512-kRrG3w0EijHHnr1ZQXPToiY6gEzPLTxKY13cwLJQunzZHQreLd0Io1TCDpRn+96VjiyjGHtQGdpjpIucw9m2OA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwXFW93M8rtuqBY46CK74LLhrec0TM2ADk3FrnZRAT3QIhAMupQ+09vDK9Skw9FMVUiHEF3bTu0ZY3K3qmtCoCT2cW"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"wookiehangover","email":"sam@quickleft.com"},"maintainers":[{"name":"wookiehangover","email":"sam@quickleft.com"}]},"0.7.0":{"name":"grunt-mocha-selenium","version":"0.7.0","description":"Run functional Mocha tests with webdriver against a local selenium instance.","homepage":"https://github.com/wookiehangover/grunt-mocha-selenium","bugs":{"url":"https://github.com/wookiehangover/grunt-mocha-selenium/issues"},"author":{"name":"Sam Breed","email":"sam@quickleft.com"},"keywords":["gruntplugin","selenium","mocha","appium","testing"],"main":"Gruntfile.js","repository":{"type":"git","url":"https://github.com/wookiehangover/grunt-mocha-selenium"},"licenses":[{"type":"MIT"}],"devDependencies":{"grunt-contrib-jshint":"~0.2.0"},"scripts":{"test":"grunt test"},"dependencies":{"selenium-launcher":"git://github.com/wookiehangover/nodejs-selenium-launcher.git","wd":"~0.2.0","mocha":"~1.12.0","phantomjs":"~1.9.1","async":"~0.2.9","freeport":"~1.0.2"},"_id":"grunt-mocha-selenium@0.7.0","dist":{"shasum":"7756b5008c854722ed86fa61a625e3ea2dbb53f2","tarball":"https://registry.npmjs.org/grunt-mocha-selenium/-/grunt-mocha-selenium-0.7.0.tgz","integrity":"sha512-4EPxu3OheyMu6sIRECfppOC6k/jFwOYCdOOacwAyzYyxELBM/tlWbt7buR9e2YtPROoOyqdTdSxKvvmvMWBt5A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWuEAeYZUkVeYaqXEPMUbgP1tSaUGIFSPZ5wm5bP+yXwIhANjd/zU6TtPHG4aX5k/RRsQvUM9g0Z9ZjHpMV0WI3rPZ"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"wookiehangover","email":"samuel.breed@gmail.com"},"maintainers":[{"name":"wookiehangover","email":"sam@quickleft.com"}]},"0.8.0":{"name":"grunt-mocha-selenium","version":"0.8.0","description":"Run functional Mocha tests with webdriver against a local selenium instance.","homepage":"https://github.com/wookiehangover/grunt-mocha-selenium","bugs":{"url":"https://github.com/wookiehangover/grunt-mocha-selenium/issues"},"author":{"name":"Sam Breed","email":"sam@quickleft.com"},"keywords":["gruntplugin","selenium","mocha","appium","testing"],"main":"Gruntfile.js","repository":{"type":"git","url":"https://github.com/wookiehangover/grunt-mocha-selenium"},"licenses":[{"type":"MIT"}],"devDependencies":{"grunt-contrib-jshint":"~0.2.0"},"scripts":{"test":"grunt test"},"dependencies":{"selenium-launcher":"git://github.com/wookiehangover/nodejs-selenium-launcher.git","wd":"^0.2.25","mocha":"^1.20.0","phantomjs":"^1.9.7-8","async":"^0.2.10","freeport":"^1.0.2"},"_id":"grunt-mocha-selenium@0.8.0","dist":{"shasum":"edd56141f2a906bd3fefa20f323d87661e8ff2e4","tarball":"https://registry.npmjs.org/grunt-mocha-selenium/-/grunt-mocha-selenium-0.8.0.tgz","integrity":"sha512-2D8qXewsQm9fCp+kxr1H81ftG4ZxwsVwBlEYN48qg7fsAYc3Wb5xLaKAQJ8JCWZVg6aPH4DfvXwzJcC/Yxnyug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAUI7gHceDtNSig3j4VHQH4ylml16YVq0f+SEGqhK1K4AiAF+5aAGoNuqy0IR2kQNSLI5O1JdUoSyQW9ZLSNuy2cyA=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"wookiehangover","email":"samuel.breed@gmail.com"},"maintainers":[{"name":"wookiehangover","email":"sam@quickleft.com"}]},"0.8.1":{"name":"grunt-mocha-selenium","version":"0.8.1","description":"Run functional Mocha tests with webdriver against a local selenium instance.","homepage":"https://github.com/wookiehangover/grunt-mocha-selenium","bugs":{"url":"https://github.com/wookiehangover/grunt-mocha-selenium/issues"},"author":{"name":"Sam Breed","email":"sam@quickleft.com"},"keywords":["gruntplugin","selenium","mocha","appium","testing"],"main":"Gruntfile.js","repository":{"type":"git","url":"https://github.com/wookiehangover/grunt-mocha-selenium"},"licenses":[{"type":"MIT"}],"devDependencies":{"grunt-contrib-jshint":"~0.2.0"},"scripts":{"test":"grunt test"},"dependencies":{"selenium-launcher":"git://github.com/wookiehangover/nodejs-selenium-launcher.git","wd":"^0.2.25","mocha":"^1.20.0","phantomjs":"^1.9.7-8","async":"^0.2.10","freeport":"^1.0.2"},"_id":"grunt-mocha-selenium@0.8.1","dist":{"shasum":"3d5b8293a027ad4fa699e28b9b41c3cf597ce71c","tarball":"https://registry.npmjs.org/grunt-mocha-selenium/-/grunt-mocha-selenium-0.8.1.tgz","integrity":"sha512-b97AEbDnu8MJA3a/JAxds+dTzkComAeM5W57z2rTxZHHYPGAxybyP5u84qOHU0mXQXJbWQU8lJsGK1dTL4cZSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFAttp2qiPBt1ELCzrzt4VVlpjkPI6I1XUmKKpdn7cGZAiEA3qUVH/1n77aGPD8VGdqKTHSpKWXNepbZvtWiNAdIHAo="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"wookiehangover","email":"samuel.breed@gmail.com"},"maintainers":[{"name":"wookiehangover","email":"sam@quickleft.com"}]},"1.0.0":{"name":"grunt-mocha-selenium","version":"1.0.0","description":"Run functional Mocha tests with webdriver against a local selenium instance.","homepage":"https://github.com/wookiehangover/grunt-mocha-selenium","bugs":{"url":"https://github.com/wookiehangover/grunt-mocha-selenium/issues"},"author":{"name":"Sam Breed","email":"sam@quickleft.com"},"keywords":["gruntplugin","selenium","mocha","appium","testing"],"main":"Gruntfile.js","repository":{"type":"git","url":"https://github.com/wookiehangover/grunt-mocha-selenium"},"licenses":[{"type":"MIT"}],"devDependencies":{"grunt-contrib-jshint":"~0.2.0"},"scripts":{"test":"grunt test"},"dependencies":{"selenium-launcher":"git://github.com/wookiehangover/nodejs-selenium-launcher.git","wd":"^0.3.8","mocha":"^1.20.0","phantomjs":"^1.9.7-8","async":"^0.2.10","freeport":"^1.0.2"},"gitHead":"f948773e0afae8a34214c630c46ebfb6a84b6b05","_id":"grunt-mocha-selenium@1.0.0","_shasum":"a0f1244e44070e6f32df17f102f71cf381d943b5","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"wookiehangover","email":"samuel.breed@gmail.com"},"maintainers":[{"name":"wookiehangover","email":"sam@quickleft.com"}],"dist":{"shasum":"a0f1244e44070e6f32df17f102f71cf381d943b5","tarball":"https://registry.npmjs.org/grunt-mocha-selenium/-/grunt-mocha-selenium-1.0.0.tgz","integrity":"sha512-yZk0hK44FOv1lsI9iU7htygtKlJqDlrmS4BohaLLqTPGDPEVSUQFx1awzqjAbZGsFmvuiNRUc9As8OH7BR6ujw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCyaarPVUm11g6DvBYLQD/6wsdXcY6GVToJpgL7eEofEwIgdmZgdMOL283KPcRrtrqAoYKaZ3NzP1TlS4bbEq055xs="}]}},"1.0.1":{"name":"grunt-mocha-selenium","version":"1.0.1","description":"Run functional Mocha tests with webdriver against a local selenium instance.","homepage":"https://github.com/wookiehangover/grunt-mocha-selenium","bugs":{"url":"https://github.com/wookiehangover/grunt-mocha-selenium/issues"},"author":{"name":"Sam Breed","email":"sam@quickleft.com"},"keywords":["gruntplugin","selenium","mocha","appium","testing"],"main":"Gruntfile.js","repository":{"type":"git","url":"https://github.com/wookiehangover/grunt-mocha-selenium"},"licenses":[{"type":"MIT"}],"devDependencies":{"grunt-contrib-jshint":"~0.2.0"},"scripts":{"test":"grunt test"},"dependencies":{"selenium-launcher":"git://github.com/wookiehangover/nodejs-selenium-launcher.git","wd":"^0.3.8","mocha":"^1.20.0","phantomjs":"^1.9.7-8","async":"^0.2.10","freeport":"^1.0.2"},"gitHead":"4438b14835a18b0e7c3fed3634c67eda8b8e9f1e","_id":"grunt-mocha-selenium@1.0.1","_shasum":"13c7f333e2b2658ebc722c4ff1f1d536cc7c28ff","_from":".","_npmVersion":"2.1.10","_nodeVersion":"0.10.32","_npmUser":{"name":"wookiehangover","email":"samuel.breed@gmail.com"},"maintainers":[{"name":"wookiehangover","email":"sam@quickleft.com"}],"dist":{"shasum":"13c7f333e2b2658ebc722c4ff1f1d536cc7c28ff","tarball":"https://registry.npmjs.org/grunt-mocha-selenium/-/grunt-mocha-selenium-1.0.1.tgz","integrity":"sha512-eSJ9TX2UF6YrKG8CSegXkh0UB5g0tzmq1s1I/tCEoGy+RFcEtGQ7x1iWGFAcQg/lq9+NXQ9zXxi5PPTaw/e0EA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHvg9urvsz38A6tj08ltWWsQlcusX5YJzGWJf6BMJIjuAiBg5asfGjPHOyO6Horhif+5WP58C0RpiZqz6phzEdTr8g=="}]}}},"readme":"# grunt-mocha-selenium\n\n> Run functional [Mocha](https://github.com/visionmedia/mocha) tests\n> with [wd](https://github.com/admc/wd) with [Selenium](http://docs.seleniumhq.org/), Phantomjs and\n> [Appium](http://appium.io/).\n\n## Getting Started\n\nThis plugin requires Grunt.\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to\ncheck out the [Getting Started](http://gruntjs.com/getting-started)\nguide, as it explains how to create a\n[Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and\nuse Grunt plugins. Once you're familiar with that process, you may\ninstall this plugin with this command:\n\n```shell\nnpm install grunt-mocha-selenium --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your\nGruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-mocha-selenium');\n```\n\n## The \"mochaSelenium\" task\n\nSelenium tests are run by a standalone selenium driver that will be\ndownloaded the first time the task is run. Chrome support is provided by\nthe [Chrome\nDriver](https://code.google.com/p/selenium/wiki/ChromeDriver) plugin for\nSelenium and is provided on demand.\n\nThe task fires up a selenium instance for the browser of your choice\n(Firefox, Chrome or Phantomjs) and initializes an instance of\n[wd](https://github.com/admc/wd), passing it to the mocha test runner's\ncontext.\n\nTake a look in the `test` directory for examples of what mocha tests\nwith wd look like.\n\n### Overview\nIn your project's Gruntfile, add a section named `mochaSelenium` to the\ndata object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  mochaSelenium: {\n    options: {\n      // Mocha options\n      reporter: 'spec',\n      timeout: 30e3,\n      // Toggles wd's promises API, default:false\n      usePromises: false\n    },\n    firefox: {\n      src: ['test/*.js']\n      // firefox is the default browser, so no browserName option required\n    },\n    chrome: {\n      src: ['test/*.js'],\n      options: {\n        // Chrome browser must be installed from Chromedriver support\n        browserName: 'chrome'\n      }\n    },\n    phantomjs: {\n      src: ['test/*.js'],\n      options: {\n        // phantomjs must be in the $PATH when invoked\n        browserName: 'phantomjs'\n      }\n    }\n  }\n})\n```\n\n### Options\n\nThe usual Mocha options are passed through this task to a new Mocha\ninstance.\n\nThe following options can be supplied to the task:\n\n#### options.usePromises\n\nType: `Boolean` Default value: `false`\n\nIf enabled, this will use the [promise-enabled wd browser\nAPI](https://github.com/admc/wd#promises-api) instead of the normal\nsynchronous API.\n\n#### options.host and options.port\n\nIf these are specified then a server will not be started but these settings will be used to connect to an existing server.\n\n\"options.username\" and \"options.accesskey\" can be specified if you want to use Sauce Labs' on demand service.\n\n#### options.wdCustomizer\n\nIf you'd like to add [custom wd methods](https://github.com/admc/wd#adding-custom-methods),\nyou can specify a `wdCustomizer` path to a module that patches the wd module\nbefore the wd remote is created.\n\nExample:\n\n```js\ngrunt.initConfig({\n  mochaSelenium: {\n    options: {\n      reporter: 'spec',\n      timeout: 30e3,\n      useChaining: true\n    },\n    phantomjs: {\n      src: ['test/*.js'],\n      options: {\n        browserName: 'phantomjs',\n        wdCustomizer: 'test/wd_customizer'\n      }\n    }\n  }\n})\n```\n\n`test/wd_customizer.js`:\n\n```js\nfunction wdCustomizer(wd) {\n  wd.addPromiseChainMethod(\n    'waitForSomethingCustom',\n    function(pageId) {\n      return this.waitForElementByCssSelector('#somethingCustom');\n    }\n  );\n\n  return wd;\n}\n\nmodule.exports = wdCustomizer;\n```\n\n### Usage Examples\n\nSee this project's `Gruntfile.js` for examples.\n\nIn this example, we'll run functional mocha tests for all files in the\n`test` directory using the wd promises API and the nyan-cat reporter.\n\n```js\ngrunt.initConfig({\n  mochaSelenium: {\n    options: {\n      reporter: 'nyan',\n      usePromises: true,\n      useChrome: true\n    },\n    all: ['test/*.js' ]\n  },\n})\n```\n\n## Contributing\n\nIn lieu of a formal styleguide, take care to maintain the existing\ncoding style. Add unit tests for any new or changed functionality. Lint\nand test your code using [Grunt](http://gruntjs.com/).\n\n## Release History\n\n* v0.7.0 - bumping selenium and chromedriver versions\n* v0.4.0 - add Appium support\n* v0.3.0 - add phantomjs support\n* v0.2.0 - add chromedriver support\n* v0.0.1 - initial release\n\n## Licensed under the MIT license.\n","maintainers":[{"name":"wookiehangover","email":"sam@quickleft.com"}],"time":{"modified":"2022-06-18T15:31:05.529Z","created":"2013-08-09T17:59:09.571Z","0.0.1":"2013-08-09T17:59:10.296Z","0.2.0":"2013-08-15T04:18:15.738Z","0.2.1":"2013-08-15T18:00:56.322Z","0.3.0":"2013-09-20T16:23:00.299Z","0.4.0":"2013-09-21T04:02:05.182Z","0.5.0":"2013-11-12T23:30:52.632Z","0.7.0":"2014-01-27T23:55:38.882Z","0.8.0":"2014-06-03T16:51:45.052Z","0.8.1":"2014-06-03T17:27:39.651Z","1.0.0":"2014-09-26T21:51:51.129Z","1.0.1":"2014-12-19T17:09:06.972Z"},"author":{"name":"Sam Breed","email":"sam@quickleft.com"},"repository":{"type":"git","url":"https://github.com/wookiehangover/grunt-mocha-selenium"},"readmeFilename":"README.md","homepage":"https://github.com/wookiehangover/grunt-mocha-selenium","keywords":["gruntplugin","selenium","mocha","appium","testing"],"bugs":{"url":"https://github.com/wookiehangover/grunt-mocha-selenium/issues"},"users":{"pingjiang":true,"shpilman":true}}