question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Chrome args "--start-maximized" doesn't work on macOS Big Sur 11.3.1

See original GitHub issue

Context:

  • 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:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
wanghongjuancommented, May 31, 2021

Many thanks for your clarification again, I double confirmed that the Chrome can be maximized with old userDataDir, but failed with new userDataDir.

0reactions
yury-scommented, May 27, 2021

hi @yury-s thanks for your quickly response, I tried adding viewport: null, the flag still doesn’t work, but launching the browser from terminal with the flag works well, so I think maybe this issue should be reported to here.

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found