dependabot[bot] 15daddc2d7
chore(deps): bump junit.version from 5.14.1 to 6.0.2
Bumps `junit.version` from 5.14.1 to 6.0.2.

Updates `org.junit.jupiter:junit-jupiter-engine` from 5.14.1 to 6.0.2
- [Release notes](https://github.com/junit-team/junit-framework/releases)
- [Commits](https://github.com/junit-team/junit-framework/compare/r5.14.1...r6.0.2)

Updates `org.junit.jupiter:junit-jupiter-params` from 5.14.1 to 6.0.2
- [Release notes](https://github.com/junit-team/junit-framework/releases)
- [Commits](https://github.com/junit-team/junit-framework/compare/r5.14.1...r6.0.2)

Updates `org.junit.jupiter:junit-jupiter-api` from 5.14.1 to 6.0.2
- [Release notes](https://github.com/junit-team/junit-framework/releases)
- [Commits](https://github.com/junit-team/junit-framework/compare/r5.14.1...r6.0.2)

---
updated-dependencies:
- dependency-name: org.junit.jupiter:junit-jupiter-engine
  dependency-version: 6.0.2
  dependency-type: direct:development
  update-type: version-update:semver-major
- dependency-name: org.junit.jupiter:junit-jupiter-params
  dependency-version: 6.0.2
  dependency-type: direct:development
  update-type: version-update:semver-major
- dependency-name: org.junit.jupiter:junit-jupiter-api
  dependency-version: 6.0.2
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-01 18:02:49 +00:00
2024-11-18 17:01:09 -08:00
2026-01-28 10:39:26 -08:00
2026-01-28 10:39:26 -08:00
2020-09-25 11:15:33 -07:00
2020-09-25 11:15:33 -07:00
2020-09-25 11:15:33 -07:00
2026-01-28 10:39:26 -08:00
2020-09-25 11:15:33 -07:00
2024-08-28 11:09:38 -07:00

🎭 Playwright for Java

javadoc maven version Join Discord

Website | API reference

Playwright is a Java library to automate Chromium, Firefox and WebKit with a single API. Playwright is built to enable cross-browser web automation that is ever-green, capable, reliable and fast.

Linux macOS Windows
Chromium 145.0.7632.6
WebKit 26.0
Firefox 146.0.1

Documentation

https://playwright.dev/java/docs/intro

API Reference

https://playwright.dev/java/docs/api/class-playwright

Example

This code snippet navigates to Playwright homepage in Chromium, Firefox and WebKit, and saves 3 screenshots.

import com.microsoft.playwright.*;

import java.nio.file.Paths;
import java.util.Arrays;
import java.util.List;

public class PageScreenshot {
  public static void main(String[] args) {
    try (Playwright playwright = Playwright.create()) {
      List<BrowserType> browserTypes = Arrays.asList(
        playwright.chromium(),
        playwright.webkit(),
        playwright.firefox()
      );
      for (BrowserType browserType : browserTypes) {
        try (Browser browser = browserType.launch()) {
          BrowserContext context = browser.newContext();
          Page page = context.newPage();
          page.navigate("https://playwright.dev/");
          page.screenshot(new Page.ScreenshotOptions().setPath(Paths.get("screenshot-" + browserType.name() + ".png")));
        }
      }
    }
  }
}

Other languages

More comfortable in another programming language? Playwright is also available in

Description
Java version of the Playwright testing and automation library
Readme Apache-2.0 9.6 MiB
Languages
Java 98.2%
HTML 1.3%
Shell 0.4%
CSS 0.1%