Skip to content

Latest commit

 

History

History
 
 

ReadMe.md

Creating a Test Runner with NodeJS + Express

You can create a customized web app for running SeleniumBase tests by using NodeJS and Express. (This tutorial assumes that you've already installed SeleniumBase.

0. Clone SeleniumBase from GitHub

1. Install NodeJS (if not installed)

2. Upgrade NodeJS (if using an older version)

npm install -g npm@latest

3. Install the Example Test Runner for SeleniumBase from the integrations/node_js folder (npm ci has a speed improvement over npm install.)

npm ci

(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 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.