Skip to content

Next major version (v6): Switch from Puppeteer to Playwright #706

@amtrack

Description

@amtrack

In the next major version (v6) we're switching from Puppeteer to Playwright.

You can already test the preview, and feedback is appreciated.

sf plugins install sfdx-browserforce-plugin@next

If you're running browserforce in GitHub Actions with runs-on: ubuntu-latest you're already set.
Playwright can use the installed Google Chrome.

Otherwise, please install chromium:

sf browserforce playwright -- install chromium

Puppeteer has served us pretty well, but Playwright's has some quite good APIs and is really nice to use.

TODOs:

  • remove superfluous waitUntil @amtrack
  • streamline pattern to click and wait for navigation @amtrack
  • change back some locators to be language independent for now
  • test CPQ @amtrack
  • figure out installation of browsers
  • create release notes and migration instructions
  • test installation of prerelease

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions