microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
66.34k stars 3.63k forks source link

[Feature]: Enable WebKit to Launch Maximized or Custom Viewports at Top-Right Corner #33135

Closed SparshKesari closed 1 day ago

SparshKesari commented 2 days ago

🚀 Feature Request

Enable WebKit browsers to launch with a maximized viewport or a custom viewport size positioned at the top-right corner of the screen, preventing them from opening at random X and Y coordinates. This issue occurs both when using the --start-maximized argument and when setting a custom viewport size, leading to unpredictable window placements. This behavior contrasts with Chrome, Chromium-based browsers (e.g. Edge), and Firefox, which handle maximized and custom viewports correctly.

Example

Current Behavior: The WebKit browser opens with a maximized viewport or a specified custom size but appears at varying X and Y coordinates across runs.

Webkit: Image

Motivation

This feature will address inconsistencies in WebKit browser launches. In visual and UI regression testing, random positioning can skew test results or interfere with screenshots. This enhancement will be helpful for automated workflows and cloud-based testing infrastructure and will provide us with consistent and seamless results across the board.

dgozman commented 1 day ago

Merging into #4046 as a "launch maximized" request.