mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-11 12:33:45 +03:00
0ade6af689
api(trace): introduce artifacts options This introduces launch({ artifactsPath }) and newContext({ relativeArtifactsPath, recordTrace }) options. - artifactsPath option controls the directory where all artifacts go. If not passed, artifacts are not collected. - relativeArtifactsPath can be used to put context-specific artifacts into a subfolder. If not passed, shared artifactsPath is used. - recordTrace controls trace recording. We also expose trace types under playwright/types/trace.d.ts. In the follow up: - videos will be put into artifactsPath; - downloads will be put into artifactsPath, or keep using existing downloadsPath when artifactsPath is not specified. |
||
---|---|---|
.. | ||
development | ||
docker | ||
examples | ||
actionability.md | ||
api.md | ||
assertions.md | ||
auth.md | ||
ci.md | ||
core-concepts.md | ||
debug.md | ||
emulation.md | ||
extensibility.md | ||
input.md | ||
installation.md | ||
intro.md | ||
languages.md | ||
multi-pages.md | ||
navigations.md | ||
network.md | ||
pom.md | ||
README.md | ||
selectors.md | ||
showcase.md | ||
test-runners.md | ||
troubleshooting.md | ||
verification.md | ||
why-playwright.md |
Documentation
Capabilities
Playwright is a 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.
- Ever-green browser engines
- Headless execution
- Scenarios that span multiple pages, domains and iframes
- Auto-wait for elements to be ready before executing actions (like click, fill)
- Reliable signals instead of timeouts (like network response, popup, navigation)
- Intercept network activity for stubbing and mocking network requests
- Emulate mobile devices, geolocation, permissions
- Support for web components via shadow-piercing selectors
- Native input events for mouse and keyboard
- Upload and download files
Table of contents
- Introduction
- Guides
- Tutorials
- Integrations
- Reference
- Get help