playwright-python icon indicating copy to clipboard operation
playwright-python copied to clipboard

[Bug]: ignore_default_args is broken

Open Devpmin opened this issue 1 month ago • 0 comments

Version

1.48.0

Steps to reproduce

when launching browser, (checked on firefox, chrome, chromium) with ignore_default_args=True or False, getting error playwright._impl._errors.Error: BrowserType.launch: ignore_default_args: expected array, got boolean

Expected behavior

it was supposed to disable all default args set by playwright on the browser launch, but its not accepting booleans. only list or arrays are accepted

Actual behavior

-> browser = await browser_type.launch(**launch_args) (Pdb) launch_args {'headless': False, 'channel': 'chrome', 'proxy': {'server': '<servver-ip'}, 'args': BoxList([]), 'chromium_sandbox': False, 'firefox_user_prefs': Box({}), 'slow_mo': 0.0, 'timeout': 30000.0, 'ignore_default_args': False} (Pdb) n playwright._impl._errors.Error: BrowserType.launch: ignore_default_args: expected array, got boolean

Additional context

in the documentation of playwright for python, its said that bool or list is accepted as argument of ignore_default_args. but its returning an error on providing bool. also there is no other option to avoid all args given by default. https://playwright.dev/python/docs/api/class-browsertype#browser-type-launch-option-ignore-default-args

Environment

- Operating System: [Ubuntu 22.04]
- CPU: [arm64]
- Browser: [Firefox, Chromium, Firefox]
- Python Version: [3.8,3.9,3.10]
- Other info:

Devpmin avatar Nov 18 '25 12:11 Devpmin