Rayrun
← Back to Discord Forum

--start-maximized not working on mac m2

magicraindropposted in #help-playwright
Open in Discord
magicraindrop

On Mac with playwright 1.40 (python3.11.6), and using chrome, the following code does not start chrome maximized on the screen:

with sync_playwright() as p:
    browser = p.chromium.launch(
        channel="chrome", headless=False, args=["--start-maximized"]
    )

Any ideas what I am doing wrong?

This thread is trying to answer question "Why does Chrome not start maximized on a Mac with an M2 chip when using the '--start-maximized' argument with playwright in Python?"

2 replies

If you leave out the args parameter, does Chrome start fine then (just not maximized)?

Maybe this StackOverflow answer works for you? https://stackoverflow.com/a/75144132/17402583

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].