Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Bug]: ignore_default_args is broken #3005

Open
@Devpmin

Description

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /