Comments (4)
Here is an example of how to open an extension popup using Puppeteer https://github.com/oliverdunk/puppeteer-extension-experiments/blob/main/src/index.ts#L13
from puppeteer.
This issue was not reproducible. Please check that your example runs locally and the following:
- Ensure the script does not rely on dependencies outside of
puppeteer
andpuppeteer-core
. - Ensure the error string is just the error message.
-
Bad:
Error: something went wrong at Object.<anonymous> (/Users/username/repository/script.js:2:1) at Module._compile (node:internal/modules/cjs/loader:1159:14) at Module._extensions..js (node:internal/modules/cjs/loader:1213:10) at Module.load (node:internal/modules/cjs/loader:1037:32) at Module._load (node:internal/modules/cjs/loader:878:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:23:47
-
Good:
Error: something went wrong
.
-
- Ensure your configuration file (if applicable) is valid.
- If the issue is flaky (does not reproduce all the time), make sure 'Flaky' is checked.
- If the issue is not expected to error, make sure to write 'no error'.
Once the above checks are satisfied, please edit your issue with the changes and we will
try to reproduce the bug again.
from puppeteer.
This code loads the popup as a regular web page so it does not have extension context. Currently, this is not supported. If you are able to open a popup of an extension in some way you could use the target API to find the popup target https://pptr.dev/guides/chrome-extensions In that case, the popup will be connected to the extension APIs.
from puppeteer.
great the above code opens the pop up as expected.thanks
from puppeteer.
Related Issues (20)
- [Bug]: the parameter outline in page.pdf seems not work HOT 6
- [Bug]: PDF page numbers no longer working in headless: shell HOT 3
- [Bug]: Install error HOT 2
- [Bug]: After deployment on server the service crashes for 5-10 concurrent users. HOT 2
- Chrome Canary test results HOT 27
- [Bug]: HOT 1
- [Bug]: HOT 7
- [Feature]: Add ability to exclude web sockets from WaitForNetworkIdle HOT 1
- Error: Passed function cannot be serialized! HOT 5
- [Bug]: Navigation failed because browser has disconnected! HOT 2
- Test "[click.spec] Page.click should click the button with fixed position inside an iframe" is flaky
- [Bug]: Failed to launch browser process. HOT 2
- Failed to launch the browser process! on WSL but working on local HOT 2
- HTTPRequest is checking for chrome-only error message "Invalid header" HOT 2
- [Typo] Docs have a misspelling in arhicture HOT 1
- [Bug]: Pages within the electron project cannot be connected HOT 8
- [Feature]: when I want to generate a pdf with 2 per sheet each, I don't find the corresponding api in "page.pdf (options?: PDFOptions)".
- [Feature]: Track the originator of http request HOT 1
- [Bug]: Error: Attempted to use detached Frame 'xxx...xxx' after waking up from standby HOT 14
- [Bug]: Puppeteer Cache Folder Not Reinstalling in ~/.cache After Update and Reinstallation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppeteer.