Awesome
<div align="center">Puppeteer IDE Extension
A standalone extension to write and execute puppeteer scripts from browser's developer tools.
Installation • Usage • Screenshots • Build From Source • Privacy • Todo • FAQs
<img src="assets/pptr-ide-extension.gif" alt="Demo GIF" width="800"/> </div>Installation
This extension is published 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.
Use 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 it is being edited.
Screenshots
Using $0
:-
Dark 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 dist folder which you can load in your browser by following this steps.
Privacy
This extension is standalone. It doesn't make any external api calls. You can inspect network of page/extension and source code in this repo.
Todo
- Add multi tab/script support.
- Add theme switch.
- Print unhandled errors in console tab of inspected window.
- Suggesting xPath of currently selected element when
$0
typed in editor. - Binding keyboard shortcut with script for execution without devtools opened.
- Adjustable delay in execution.
- Show used/available chrome storage space.
FAQs
Q: Does this extension have any external dependency ? <br> No. This extension internally uses chrome.debugger api and is standalone, so there is no requirement of starting browser with remote debugging cli flag or having nodejs or any other service running.
<br>Q: On which browsers can this extension be installed ? <br> This extension only works with chrome and other chromium based browsers like edge, brave etc.
<br>Q: Execution stops abruptly when page navigates ?
<br>
Some other extensions may cause this issue, especially 3rd party extensions which are added by desktop applications. One particular extension is Adobe Acrobat
which is added by Adobe's desktop application.
You can disable this extension and try again executing.
Q: From where can this extension be installed ? <br> This extension is published on chrome web store. Click on below button to view it in chrome web store.
<br>Q: How can be puppeteer script executed in extension ? <br> Check out puppeteer-extension-transport package.
<br>