Apify Discord Mirror

Updated 4 months ago

Playwright with Firefox: New Windows vs Tabs and Chromium-specific Features

At a glance
The community member is using Firefox with Playwright and has encountered two issues:

1. Firefox opens new windows instead of tabs when running in headless: false mode. The community member would prefer to have new tabs open instead of separate windows.

2. The community member is getting a warning about the blockRequests() helper being incompatible with non-Chromium browsers. The community member would like to know if there are any polyfills or workarounds to use Chromium-specific Playwright utilities with Firefox.

The community member is seeking insights and suggestions from the Playwright community to address these issues.

Hey Playwright community! I've been using Firefox with Playwright because it uses less CPU, but I've run into a couple of issues I'd love some help with:

  1. New Windows Instead of Tabs
    I'm running Firefox in headless: false mode to check how things look, and I've noticed it opens new windows for each URL instead of opening new tabs. Is there a way to configure this behavior? I'd prefer to have new tabs open instead of separate windows.
  1. Chromium-specific Features in Firefox
    I'm getting this warning when using Firefox:
    Plain Text
    WARN Playwright Utils: blockRequests() helper is incompatible with non-Chromium browsers.

    Are there any polyfills or workarounds for the playwrightUtils features that are Chromium-specific? I'd like to use blockRequests() or similar functionality with Firefox if possible.
Any insights or suggestions would be greatly appreciated! Thanks in advance for your help.

#playwright #firefox
Add a reply
Sign up and join the conversation on Discord