These node-red nodes expose puppeteer's API used for controlling Chrome/Chromium over the DevTools Protocol
Group | Node Name | Detailed information |
---|---|---|
Browser | Launch | Launch Chrome browser
Must launch Chrome browser before run any puppeteer actions |
Browser | New Page | This node creates/opens new page(tab) in existing chromium instance or rather puppeteer.browser object |
Browser | Close Browser | This node closes chromium browser instance provided with puppeteer.browser object |
Page | Click | Click on Chrome
This node fetches an element with |
Page | Close | Close first chromium page(tab) This node closes first chromium page(tab) provided with |
Page | Content | Get content from page This node gets page's content from |
Page | Delete Cookies | This node deletes all the cookies from the passed puppeteer.page object |
Page | Download | Dowload a file
This method fetches an element with |
Page | Focus | Focus on element This node fetches an element with |
Page | Get | Get property value from element This node fetches a specified |
Page | Get Cookies | This node retrieves all cookies using the passed page object as input ( msg.puppeteer.page ). This node otputs list of cookies in msg.payload property. Each object contains the following properties:
|
Page | Go to | Chrome page navigation
|
Page | Screenshot | Capture Screen
Browser screenshot, require focus / active to browser |
Page | Set | Set value to input field This node fetches an element with |
Page | Set Cookies | This node sets the cookies on the current page object. The input page object should be passed as msg.puppeteer.page . The cookies should be a list of cookie objects where each one has the following properties and they should be passed in as msg.payload , or if directly into the input field it should be a valid JSON list:
|
Page | Upload | Upload file to specified selector This node uploads a file(or more accurately specified filePath) specified with |
Page | Wait for | Wait for selector This node awaits for element specified with |
Keyboard | Press | Keyboard Press This node presses the keyboard key specified in |
Keyboard | Type | Keyboard Type This node types the text specified in the |
Storage | Rename | Rename file
This node renames the file from old file path to the new file path, or essetially it moves it from one location to another if that is how the paths are specified. |
npm install @digitalnodecom/node-red-contrib-puppeteer
The original package started development in this repository. Thank you oliverlorenz for the initiative!
Thanks to d0uub for picking up the development of the original repository and continuing it in the following repo. We forked from this repo and created this package by adding nodes and improving node's documentation!
By coolors.co
By fontawesome and svgrepo