SeleniumBase/integrations/node_js
Michael Mintz a385401ac1 Update an example test 2020-08-26 17:30:06 -04:00
..
ReadMe.md Update the NodeJS Express Test Runner App 2020-08-10 23:53:30 -04:00
__init__.py Prioritize pytest over nosetests 2018-07-25 01:26:15 -04:00
index.html Improve the NodeJS Python test launcher 2020-08-08 00:57:05 -04:00
my_first_test.py Update an example test 2020-08-26 17:30:06 -04:00
package.json Use "express ~4.17.1" 2019-06-29 16:17:40 -04:00
server.js Update the NodeJS Express Test Runner App 2020-08-10 23:53:30 -04:00
test_demo_site.py Improve the NodeJS Python test launcher 2020-08-08 00:57:05 -04:00

ReadMe.md

Creating a SeleniumBase Test Runner with NodeJS

You can create a customized web app for running SeleniumBase tests by using NodeJS. (This tutorial assumes that you've already installed SeleniumBase by following the instructions from the top-level ReadMe file.)

1. Install NodeJS

2. Install Express for NodeJS

npm install -g express

3. Install the Example Test Runner for SeleniumBase from the integrations/node_js folder

npm install

(You should see a node_modules folder appear in your node_js folder.)

4. Run the NodeJS server for your SeleniumBase Test Runner web app

node server.js

(You can always stop the server by using CTRL-C.)

5. Open the SeleniumBase Test Runner web app

6. Run an example test

Click on a button to run a SeleniumBase example test.

7. Expand your web app

Now that you have a web app for running SeleniumBase tests, you can expand it to run any script that you want after pressing a button.