You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Show just a warning instead of preventing the launch on Firefox and WebKit to minimize the error rate / entry barrier.
Not fully sure if `console.warn` is okay for that.
Closes#1440
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:
The text was updated successfully, but these errors were encountered: