Giter Club home page Giter Club logo

puppeteer-ide-extension-fork's Introduction

Puppeteer IDE Extension

lint build

A standalone extension to write and execute puppeteer scripts from browser's developer tools.

InstallationUsageScreenshotsBuild From SourcePrivacyTodoFAQs

Demo GIF

Installation

This extension is published on chrome web store.

Add from 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 :- Using $0 to get selector

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 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 ?
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.


Q: On which browsers can this extension be installed ?
This extension only works with chrome and other chromium based browsers like edge, brave etc.


Q: Execution stops abruptly when page navigates ?
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 ?
This extension is published on chrome web store. Click on below button to view it in chrome web store.

Add from Chrome web store


Q: How can be puppeteer script executed in extension ?
Check out puppeteer-extension-transport package.


puppeteer-ide-extension-fork's People

Contributors

gajananpp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.