selenium tests for passive-aggressive-1248
This is the first POC for how to run Selenium with node.
Note that any site - not just a node site - can be tested this way.
This suite runs on Mac OSX. Before running the tests, two things must be true.
- You must run
npm install
in the root directoy to install your node_modules. - The chrome driver must be on a path in your
$PATH
environment variable. - The selenium server must be running.
- You must have the Chrome browser.
(note you do NOT have to kill/restart the selenium server between tests.)
Note that both the selenium server and chrome driver are frequently updated -- do not rely on these files being current.
each test is a self contained node script; the currently runnable tests include
/tests/navigation_tests.js
node tests/navigation_tests.js
will execute the suite.