-
Notifications
You must be signed in to change notification settings - Fork 947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ignoreDefaultArgs
launch parameter is broken
#189
Comments
I thought it might be hanging because some of browser flags were required but I popped the defaults from
From what I understand here:
|
Hi, thanks for reporting and digging into that issue. I created a patch to fix this behaviour. |
I've tried the patched branch and it fixes the first error but it still hangs indefinitely if started with |
Yeah since it probably removes some arguments which we need internally. What are you trying to archive? Does maybe ignoring a selection of arguments help you? |
Maybe my default argument list is incorrect but assuming it is correct shouldn't:
I'm trying to debug some unusual behavior I see in playwright's browser but not in desktop browser. Presumably it's being caused by one of these flags. For example |
We unfortunately require the usage of an incognito tab internally: microsoft/playwright#2071 |
The patch doesn't fix the issue though. Additionally I think it would be great to document default browser launch flags (DefaultArgs) somewhere because now it's extremely difficult to debug why playwright browser is seeing different page compared to the user i.e. it's hard to use as a testing framework if it cannot properly simulate user. |
I tried it and for me it's working. (Tested ignoreDefaultArgs: ['--mute-audio'] Maybe launchPersistentContext fits for your needs? Why different? Would be great to know why the behavior is different. And which behavior. Thanks! |
im running into the issue that i can't set the browser size via args what's wrong with the command? browser_args = ['viewport: {width: 1280, height: 720}'] |
You can set the viewport when creating a context: https://playwright.dev/#version=v1.5.2&path=docs%2Fapi.md&q=browsernewcontextoptions--options-viewport-width So
should work. Is this what you want? |
why in this code: they don't check for ignoreDefaultArgs at all |
I'm trying to disable default launch arguments however when this parameter is set to True one of two things happen:
will break with:
I've made a hotfix patch here Granitosaurus@2dc0e10 now the browser launches fine but timesout on
launch()
call:The text was updated successfully, but these errors were encountered: