-
download poe.js, package.json and latest version of selenium server
-
install require modules
$ npm install
-
copy examples/ and lib/ at current folder
$ cp node_modules/nightwatch/examples . $ cp node_modules/nightwatch/lib .
-
create tests/ folder
$ mkdir tests
-
be sure to modify the acc and pwd variable in poe.js, and move it to tests/ folder.
-
run command below
$ nightwatch --test tests/poe.js
P.S. Be sure to install firefox and launch selenium server.