{"repo":"playwright-php/playwright","free":true,"listed":false,"github":"https://github.com/playwright-php/playwright","clone":"git clone https://github.com/playwright-php/playwright.git","description":"Playwright PHP library for browser automation: navigation, E2E tests, assertions, screenshots, and so much more!","language":"PHP","stars":206,"topics":["browser","browser-automation","php","php-browser","phpunit","playwright","scraping","screenshot","test","css-selectors"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"&nbsp; &nbsp; &nbsp; &nbsp; Playwright PHP Automate Chromium, Firefox, and WebKit from PHP for browser testing, scraping, screenshots, and other browser-driven workflows. - Familiar browser, context, page, and locator model - Auto-waiting interactions - PHPUnit integration with fluent expect() assertions - No separate server to manage: the package starts its bundled Node server Requirements: - PHP 8.2+ - Node.js 20+ (used by the bundled Playwright server and browsers) Installation Add the library to your project: Install the Playwright browsers (Chromium, Firefox, WebKit): For advanced install options (including browser cache location), see the Getting Started guide. Quick Start Open a page and print its title: Documentation - Quick Start Guide - Playwright Inspector - Contributing: Testing Usage Browser - Choose a browser: Playwright::chromium() , Playwright::firefox() , or Playwright::webkit() . - Playwright::safari() is an alias of webkit() . - Common launch options: headless (bool), slowMo (ms), args (array of CLI args), and an optional context array with context options. Page Create pages, navigate, evaluate scripts, and take screenshots: Locators and interactions Storage state and context reuse PHPUnit integration The package provides a testing trait and fluent expect() assertions to write robust E2E tests. Requirements : PHPUnit 10.0 or higher is required to use the PlaywrightTestCaseTrait . Minimal example: Notes: - The trait provides $this- playwright , $this- browse","default_branch":null,"files":null,"tree":[],"storefront":"/r/playwright-php","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/playwright-php/playwright/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}