{"id":30558306,"url":"https://github.com/loong64/playwright","last_synced_at":"2026-01-31T18:13:50.893Z","repository":{"id":311635022,"uuid":"1044398780","full_name":"loong64/playwright","owner":"loong64","description":"Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.","archived":false,"fork":false,"pushed_at":"2025-10-17T16:31:08.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-18T19:00:14.477Z","etag":null,"topics":["automation","chrome","chromium","e2e-testing","electron","end-to-end-testing","firefox","javascript","playwright","test","test-automation","testing","testing-tools","web","webkit"],"latest_commit_sha":null,"homepage":"https://github.com/microsoft/playwright","language":null,"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/loong64.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-25T16:12:53.000Z","updated_at":"2025-08-29T04:31:06.000Z","dependencies_parsed_at":"2025-08-25T17:50:24.713Z","dependency_job_id":"34dc90b8-79e4-4677-abf2-600416f72e3a","html_url":"https://github.com/loong64/playwright","commit_stats":null,"previous_names":["loong64/playwright"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/loong64/playwright","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loong64%2Fplaywright","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loong64%2Fplaywright/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loong64%2Fplaywright/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loong64%2Fplaywright/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loong64","download_url":"https://codeload.github.com/loong64/playwright/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loong64%2Fplaywright/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28949278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["automation","chrome","chromium","e2e-testing","electron","end-to-end-testing","firefox","javascript","playwright","test","test-automation","testing","testing-tools","web","webkit"],"created_at":"2025-08-28T08:25:08.386Z","updated_at":"2026-01-31T18:13:50.878Z","avatar_url":"https://github.com/loong64.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) \u003c!-- GEN:chromium-version-badge --\u003e[![Chromium version](https://img.shields.io/badge/chromium-140.0.7339.16-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)\u003c!-- GEN:stop --\u003e \u003c!-- GEN:firefox-version-badge --\u003e[![Firefox version](https://img.shields.io/badge/firefox-141.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)\u003c!-- GEN:stop --\u003e \u003c!-- GEN:webkit-version-badge --\u003e[![WebKit version](https://img.shields.io/badge/webkit-26.0-blue.svg?logo=safari)](https://webkit.org/)\u003c!-- GEN:stop --\u003e [![Join Discord](https://img.shields.io/badge/join-discord-informational)](https://aka.ms/playwright/discord)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [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 --\u003e140.0.7339.16\u003c!-- GEN:stop --\u003e | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit \u003c!-- GEN:webkit-version --\u003e26.0\u003c!-- GEN:stop --\u003e | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox \u003c!-- GEN:firefox-version --\u003e141.0\u003c!-- GEN:stop --\u003e | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) =\u003e {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) =\u003e {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) =\u003e {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() =\u003e {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) =\u003e {\n  // Log and continue all network requests\n  await page.route('**', route =\u003e {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floong64%2Fplaywright","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floong64%2Fplaywright","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floong64%2Fplaywright/lists"}