SeleniumBase/integrations/node_js
Michael Mintz a2b58d4cc7 Update a library version 2019-09-16 05:13:53 -04:00
..
ReadMe.md Update links from mdmintz to seleniumbase 2016-07-17 16:34:57 -04:00
__init__.py Prioritize pytest over nosetests 2018-07-25 01:26:15 -04:00
index.html Update a library version 2019-09-16 05:13:53 -04:00
my_first_test.py Update example tests 2019-09-05 04:41:36 -04:00
package.json Use "express ~4.17.1" 2019-06-29 16:17:40 -04:00
server.js Prioritize pytest over nosetests 2018-07-25 01:26:15 -04:00

ReadMe.md

Creating a SeleniumBase Test Launcher using NodeJS

Great news: It's really easy to create a customized web app for kicking off SeleniumBase jobs using NodeJS. This tutorial will walk you through all the steps that you need. (I'll assume 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 Launcher 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 Launcher web app

node server.js

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

5. Open the SeleniumBase Test Launcher web app

6. Run an example test

Click on one of the buttons to run a SeleniumBase example test

7. Enjoy your web app

Congratulations! You now have a web app for kicking off SeleniumBase tests! NodeJS makes it easy!