simonradier / node-red-contrib-simple-webdriver

SimpleWebdriver nodes for Node-RED initially based on node-red-contrib-selenium-wd2
Apache License 2.0
14 stars 7 forks source link

node-red-contrib-simplewebdriver

Coverage Status npm Libraries.io dependency status for latest release

Simplewebdriver nodes for Node-Red allow web browser automation initially based on the Selenium-Webdriver API. Based on node-red-contrib-selenium-webdriver library and forked from node-red-contrib-selenium-wd2, it was rewritten in Typescript to ease its maintenance, improve the overall stability and upgrade a little bit the set of features.

simple-webdriver workflow example

Prerequisite

In order to use node-red-contrib-simple-webdriver, you must fullfill the following prerequisite :

Installation

Run

Launch Node-red node-red and the simplewebdriver nodes will be loaded automatically. You should see the list of node under the simplewebdriver section.

simplewebdriver section overview

Behavior

Create a new flow

You will always have to start with an open-browser node.

Most of the nodes will provide two outputs a success and a failure one.

Mustache support for node properties

Most of the nodes' properties support simplified mustache syntax to retrieve value directly from the msg object (e.g. {{msg.property}}) or the environment (e.g. {{env.property}})

Documentation

All nodes provides their own documentation directly inside node-red.

swd help overview

Develop

If you want to contribute, you can install clone the project and run the following command :

To test it, you will have to :