Comments (3)
See examples for opening a popup page here https://pptr.dev/guides/chrome-extensions
from puppeteer.
See examples for opening a popup page here https://pptr.dev/guides/chrome-extensions
I guess that's not exactly what i need. chrome.action.openPopup() is unavailable for me(missing from stable channel). Whatever i don't need manually open extension, i just need inject script when popup is opening by user
from puppeteer.
chrome.action.openPopup() is unavailable for me(missing from stable channel).
It should be available in the bundled Chrome for Testing version.
You should still be able to do the following to wait for the popup target and execute code:
const popupTarget = await browser.waitForTarget(
// Assumes that there is only one page with the URL ending with popup.html and that is the popup created by the extension.
target => target.type() === 'page' && target.url().endsWith('popup.html')
);
Although I am not sure what use case would require injecting code when the user is opening the popup.
from puppeteer.
Related Issues (20)
- [Bug]: on Almalinux 8 (Namecheap) missing libatk-bridge-2.0.so.0 libdrm.so.2 libgbm.so.1libasound.so.2 even if they have been installed! HOT 3
- [Bug]: Breaking change v22.11.0 require GLIBC2.25 HOT 2
- [Bug]: remove request listener and then the page can do nothing HOT 1
- [Bug]: Puppeteer fails to launch browser process when running in a Nixpacks container HOT 6
- [Bug]: Unexpected sequence & found at index 0 HOT 6
- [Bug]: TypeError: page.removeListener is not a function HOT 2
- [Bug]: document.createElement is a Proxy HOT 2
- [Feature]: Add support for arm64 Linux Firefox HOT 3
- [Bug]: pdf printing might hang waiting for fonts if the tab is in the background HOT 1
- [Bug]: PDF table of contents HOT 3
- [Bug]: Reopening #5849 Puppeteer does not work on RHEL 8.1 (inside a podman) HOT 1
- [Feature]: Use semver ranges instead of exact versions for dependencies HOT 8
- [Bug]: can't launch firefox on [email protected] on GitHub actions HOT 10
- [Bug]: Not all frames are restored on reconnect HOT 7
- Unable to click a button to join a meeting on MsTeams HOT 2
- [Feature]: Provide a way to debug tests when launching via ng-schematics
- [Bug]: Cannot run smoke tests locally HOT 1
- [Bug]: Nondeterministic timeouts or race condition in `::-p-aria(name)` on element added shortly after page load HOT 5
- [Bug]: When Puppeteer >= 22 generating a PDF it always comes out blank HOT 1
- [Feature]: Document the use of abort controller / signal
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.