{"id":13597479,"url":"https://github.com/microsoft/playwright-java","last_synced_at":"2025-05-13T22:02:03.359Z","repository":{"id":38019288,"uuid":"298640027","full_name":"microsoft/playwright-java","owner":"microsoft","description":"Java version of the Playwright testing and automation library","archived":false,"fork":false,"pushed_at":"2025-04-01T18:38:04.000Z","size":6388,"stargazers_count":1285,"open_issues_count":34,"forks_count":227,"subscribers_count":37,"default_branch":"main","last_synced_at":"2025-04-29T13:43:57.773Z","etag":null,"topics":["java","playwright"],"latest_commit_sha":null,"homepage":"https://playwright.dev/java/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/microsoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-25T17:37:14.000Z","updated_at":"2025-04-29T12:27:56.000Z","dependencies_parsed_at":"2023-02-16T19:45:35.664Z","dependency_job_id":"41df5a5f-06f2-485f-a105-39a918132b4e","html_url":"https://github.com/microsoft/playwright-java","commit_stats":{"total_commits":849,"total_committers":35,"mean_commits":"24.257142857142856","dds":0.1813898704358068,"last_synced_commit":"db52fa94e75b0e2883d9b1590d2731550928f8fa"},"previous_names":[],"tags_count":68,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fplaywright-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fplaywright-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fplaywright-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fplaywright-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoft","download_url":"https://codeload.github.com/microsoft/playwright-java/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254036807,"owners_count":22003651,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","playwright"],"created_at":"2024-08-01T17:00:34.141Z","updated_at":"2025-05-13T22:02:03.341Z","avatar_url":"https://github.com/microsoft.png","language":"Java","readme":"# 🎭 [Playwright](https://playwright.dev) for Java\n\n[![javadoc](https://javadoc.io/badge2/com.microsoft.playwright/playwright/javadoc.svg)](https://javadoc.io/doc/com.microsoft.playwright/playwright)\n[![maven version](https://img.shields.io/maven-central/v/com.microsoft.playwright/playwright)](https://search.maven.org/search?q=com.microsoft.playwright)\n[![Join Discord](https://img.shields.io/badge/join-discord-infomational)](https://aka.ms/playwright/discord)\n\n#### [Website](https://playwright.dev/java/) | [API reference](https://www.javadoc.io/doc/com.microsoft.playwright/playwright/latest/index.html)\n\nPlaywright is a Java library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium \u003c!-- GEN:chromium-version --\u003e136.0.7103.25\u003c!-- GEN:stop --\u003e | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit \u003c!-- GEN:webkit-version --\u003e18.4\u003c!-- GEN:stop --\u003e | ✅ | ✅ | ✅ |\n| Firefox \u003c!-- GEN:firefox-version --\u003e137.0\u003c!-- GEN:stop --\u003e | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\n## Documentation\n\n[https://playwright.dev/java/docs/intro](https://playwright.dev/java/docs/intro)\n\n## API Reference\n\n[https://playwright.dev/java/docs/api/class-playwright](https://playwright.dev/java/docs/api/class-playwright)\n\n## Example\n\nThis code snippet navigates to Playwright homepage in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```java\nimport com.microsoft.playwright.*;\n\nimport java.nio.file.Paths;\nimport java.util.Arrays;\nimport java.util.List;\n\npublic class PageScreenshot {\n  public static void main(String[] args) {\n    try (Playwright playwright = Playwright.create()) {\n      List\u003cBrowserType\u003e browserTypes = Arrays.asList(\n        playwright.chromium(),\n        playwright.webkit(),\n        playwright.firefox()\n      );\n      for (BrowserType browserType : browserTypes) {\n        try (Browser browser = browserType.launch()) {\n          BrowserContext context = browser.newContext();\n          Page page = context.newPage();\n          page.navigate(\"https://playwright.dev/\");\n          page.screenshot(new Page.ScreenshotOptions().setPath(Paths.get(\"screenshot-\" + browserType.name() + \".png\")));\n        }\n      }\n    }\n  }\n}\n```\n\n## Other languages\n\nMore comfortable in another programming language? [Playwright](https://playwright.dev) is also available in\n- [Node.js (JavaScript / TypeScript)](https://playwright.dev/docs/intro),\n- [Python](https://playwright.dev/python/docs/intro).\n- [.NET](https://playwright.dev/dotnet/docs/intro),\n","funding_links":[],"categories":["Java","测试","Language Support"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fplaywright-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrosoft%2Fplaywright-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fplaywright-java/lists"}