How to resize/change the browser window using playwright with typescript
09:50 06 Feb 2026

I need to change the window size from maximum to required size

what I done :

          await page.setViewportSize({ width: 800, height: 600 });

this changes the size of the browser page not the actual window ( it just changes the page rendering area )

what is the alternative approach which helps to resize the browser window in middle of test execution

typescript playwright-test playwright-typescript