You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IMHO setting just the width should change the width while leaving the height untouched (default being the current width/height). However, if the current behavior is desirable, the docs should be updated to reflect that. Other functions like page#setCookie explicitly mark fields as required in bold, and the same thing should probably happen here.
The text was updated successfully, but these errors were encountered:
with no
height
, puppeteer rejects with the error message:However, the documentation https://pptr.dev/#?product=Puppeteer&version=v1.10.0&show=api-pagesetviewportviewport does not indicate that both height and width are required.
IMHO setting just the width should change the width while leaving the height untouched (default being the current width/height). However, if the current behavior is desirable, the docs should be updated to reflect that. Other functions like page#setCookie explicitly mark fields as required in bold, and the same thing should probably happen here.
The text was updated successfully, but these errors were encountered: