Closed vivien7512 closed 6 months ago
This issue was not reproducible. Please check that your example runs locally and the following:
puppeteer
and puppeteer-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
.
Once the above checks are satisfied, please edit your issue with the changes and we will try to reproduce the bug again.
I am not able to reproduce. The viewport is resized according to the setViewport command. Perhaps make sure that nothing else changes the viewport?
Minimal, reproducible example
Error string
no error
Bug behavior
Background
I'm using Puppeteer to connect to an already running instance of Chrome using the puppeteer.connect method.
Expectation
I am expecting a resize of the viewport
Reality
However, I am facing an issue where the viewport size settings do not apply when connected to an existing browser, whereas it works perfectly fine when I launch a new browser instance using puppeteer.launch
Puppeteer configuration file (if used)
Puppeteer version
22.9.0
Node version
21.4.0
Package manager
npm
Package manager version
10.2.4
Operating system
Windows