Skip to content

[Feature] Warning, instead of error, on devtools: true #1440

Closed

Description

For dev environments, the devtools: true option is very valuable. Since it is Chromium-only, the current behavior is to throw an error when the option is passed for Firefox or WebKit. This means the user needs to tweak the launch args whenever the browser type is changed.

Assuming this option cannot be applied to all browsers (needless to say that would be awesome), I think Playwright should throw a warning and continue with the browser launch. That way, the same code can be used across the 3 browsers, making things a bit simpler. Possible warning text:

devtools is not supported as a launch argument in Firefox. You can launch
the devtools window manually.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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