Write, test and execute automation scripts from browser’s developer tools

Puppeteer IDE extension is a standalone extension which allows you to write and execute puppeteer scripts from developer tools. It is not required to start browser with remote debugging or have nodejs or any other service installed for this extension t…


This content originally appeared on DEV Community and was authored by Gajanan Patil

Puppeteer IDE extension is a standalone extension which allows you to write and execute puppeteer scripts from developer tools. It is not required to start browser with remote debugging or have nodejs or any other service installed for this extension to work.

Installation

This extension is published on chrome web store. Click here to view extension on chrome web store.

On adding extension to browser, it will add Puppeteer IDE tab in developer tools. On switching to this tab, it will by default have one test script which you can execute right away.

This extension can be used with other chromium based browsers like edge, brave etc.

Example GIF :-

Example Extension GIF

Usage

You can access puppeteer's page instance variable directly for the tab in which developer tools is opened. On clicking Execute button, the script will be executed on the inspected tab.

The script will be auto saved as you are editing it.

The editor will take the theme of developer tools. You can change developer tool's theme by following this guide.

Light theme screenshot :-

Light theme screenshot

Dark theme screenshot :-

Dark theme screenshot

Privacy

This extension is standalone, it won't make any external API calls in the background. You can inspect the network of extension/page and source code.

For more information, checkout this project's Github Repo.

GitHub logo gajananpp / puppeteer-ide-extension

Develop, test and execute puppeteer scripts from browser's developer tools.

Puppeteer IDE Extension

lint build

Develop, test and execute puppeteer scripts from browser's developer tools.

Installation

This extension is published on chrome web store. Click here to view extension on chrome web store.

Usage

This extension will add an extra tab named "Puppeteer IDE" in browser's developer tools from where you can write and execute puppeteer scripts.

You can access page instance variable directly for the tab in which developer tools is opened.

On clicking Execute button, the script will be executed on the inspected tab.

The script will be auto saved as you are editing it.

The editor will take the theme of developer tools. Here is a guide which shows how to customize developer tool's theme.

Sample GIF :-

Sample GIF

Screenshots

Dark theme :- Dark theme

Light theme :- Light theme

Build From Source

To build extension from source :-

git clone https://github.com/gajananpp/puppeteer-ide-extension

cd puppeteer-ide-extension

npm install

npm run dist

This will output extension in…


This content originally appeared on DEV Community and was authored by Gajanan Patil


Print Share Comment Cite Upload Translate Updates
APA

Gajanan Patil | Sciencx (2021-12-14T13:00:53+00:00) Write, test and execute automation scripts from browser’s developer tools. Retrieved from https://www.scien.cx/2021/12/14/write-test-and-execute-automation-scripts-from-browsers-developer-tools/

MLA
" » Write, test and execute automation scripts from browser’s developer tools." Gajanan Patil | Sciencx - Tuesday December 14, 2021, https://www.scien.cx/2021/12/14/write-test-and-execute-automation-scripts-from-browsers-developer-tools/
HARVARD
Gajanan Patil | Sciencx Tuesday December 14, 2021 » Write, test and execute automation scripts from browser’s developer tools., viewed ,<https://www.scien.cx/2021/12/14/write-test-and-execute-automation-scripts-from-browsers-developer-tools/>
VANCOUVER
Gajanan Patil | Sciencx - » Write, test and execute automation scripts from browser’s developer tools. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/12/14/write-test-and-execute-automation-scripts-from-browsers-developer-tools/
CHICAGO
" » Write, test and execute automation scripts from browser’s developer tools." Gajanan Patil | Sciencx - Accessed . https://www.scien.cx/2021/12/14/write-test-and-execute-automation-scripts-from-browsers-developer-tools/
IEEE
" » Write, test and execute automation scripts from browser’s developer tools." Gajanan Patil | Sciencx [Online]. Available: https://www.scien.cx/2021/12/14/write-test-and-execute-automation-scripts-from-browsers-developer-tools/. [Accessed: ]
rf:citation
» Write, test and execute automation scripts from browser’s developer tools | Gajanan Patil | Sciencx | https://www.scien.cx/2021/12/14/write-test-and-execute-automation-scripts-from-browsers-developer-tools/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.