[BUG] Chrome args "--start-maximized" doesn't work on macOS Big Sur 11.3.1
See original GitHub issueContext:
- Playwright Version: 1.11.1
- Operating System: macOS Big Sur 11.3.1 (Apple M1)
- Node.js version: v16.1.0
- Browser: Chrome
Code Snippet
Help us help you! Put down a short code snippet that illustrates your bug and that we can run and debug locally. For example:
const {chromium} = require('playwright-chromium');
(async () => {
const browser = await chromium.launchPersistentContext('./userDataDir', {
headless: false,
args: ['--start-maximized']
});
const page = await browser.newPage();
await page.goto('https://playwright.dev/docs/intro');
})();
Describe the bug
The webpage launches successfully without maximized window.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Chrome doesn't work on my iMac with Big Sur 11.4
When I launch Chrome, it comes up but will not load any chrome pages. Some partially load but are bogged down.
Read more >Apple Big Sur and Chrome browser issues - Google Help
After upgrading to Big Sur, my Mac kept hanging and self-rebooting. I isolated the issue to Chrome and uninstalled Chrome.
Read more >How to fix Chrome browser problems on a Mac - Setapp
To clear the data via Chrome browser settings: Open Chrome > Preferences in the menu bar or just type chrome://settings as the URL....
Read more >Chrome in Mac is not starting in maximised state even after ...
I use these settings in my protractor-conf.js file, and it works on all type of OS : Windows, Mac, Linux etc.
Read more >Chrome Won't Open On Mac, Fix - macReports
How to fix when Chrome won't open · Press the Option, Command, and Esc (Escape) keys together or you can click Force Quit...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Many thanks for your clarification again, I double confirmed that the Chrome can be maximized with old userDataDir, but failed with new userDataDir.
I tried on macOS 10.15.7 and on 11.4, on both of them Chromium doesn’t maximize when started from terminal with that flag. @aslushnikov also tried it on Big Sur and it didn’t maximize. I also tried on Big Sur on M1 with same result.