1
0
Fork 0
firefox/testing/web-platform/tests/docs/running-tests/chrome.md
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

1.5 KiB

Chrome and Chromium

When running Chrome, there are some useful command line arguments.

You can inform wpt of the release channel of Chrome using --channel. wpt is able to find the correct binary in the following cases:

  • On Linux for stable, beta and dev channels if google-chrome-{stable,beta,unstable} are in PATH;
  • On Mac for stable and canary channels if the official DMGs are installed.

In other cases, you will need to specify the path to the Chrome binary with --binary. For example:

./wpt run --channel dev --binary /path/to/non-default/google-chrome chrome

Note: when the channel is "dev", wpt will automatically enable all experimental web platform features (chrome://flags/#enable-experimental-web-platform-features) by passing --enable-experimental-web-platform-features to Chrome.

If you want to enable a specific runtime enabled feature, use --binary-arg to specify the flag(s) that you want to pass to Chrome:

./wpt run --binary-arg=--enable-blink-features=AsyncClipboard chrome clipboard-apis/

To use a custom chromedriver build, build the chromedriver target in your chromium checkout, and then pass --webdriver-binary /path/to/non-default/chromedriver to wpt run.

A detailed explanation is available for more information on how wpt detects and installs the components for Chrome and Chromium.