Selenium-wd2 nodes for Node-Red allow web browser automation based on the Selenium-Webdriver API. Based on node-red-constrib-selenium-webdriver library, it was rewritten in Typescript to ease its maintenance, improve the overall stability and upgrade a little bit the set of features.
In order to use node-red-contrib-selenium-wd2, you must fullfill the following prerequisite :
npm install -g webdriver-manager
npm install -g --unsafe-perm node-red
npm install -g node-red-contrib-selenium-wd2
and that's all!Launch Node-red node-red
and the selenium-wd2 will be loaded automatically. You should see the list of node under the wd2 section.
If you want to contribute, you can install clone the project and run the following command :
npm run clean && npm run prepublishOnly
(linux only)To test it, you will have to :
npm install -g node-red
Launch, from the node-red
folder, the following command to debug :
npm install [PATH_TO_SELENIUM_WD2] && node --inspect node_modules/node-red/red.js
You will always have to start with an Some nodes will provide two outputs a success and a failure one.
All nodes provides their own documentation directly inside node-red.