I have a problem starting Playwright in Python maximized. I found some articles for other languages but doesn't work in Python, also nothing is written about maximizing window in Python in the official documentation.
I tried browser = p.chromium.launch(headless=False, args=["--start-maximized"])
And it starts maximized but then automatically restores back to the default small window size.
Any ideas? Thanks
I just found the answer:
I need to set also the following and it works: browser.new_context(no_viewport=True)