{"id":28399465,"url":"https://github.com/codeception/module-playwright","last_synced_at":"2025-10-09T13:11:31.809Z","repository":{"id":257678436,"uuid":"859002739","full_name":"Codeception/module-playwright","owner":"Codeception","description":"Playwright testing module in PHP","archived":false,"fork":false,"pushed_at":"2024-10-22T09:52:13.000Z","size":126,"stargazers_count":11,"open_issues_count":3,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-23T00:29:03.684Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Codeception.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}},"created_at":"2024-09-17T22:55:04.000Z","updated_at":"2025-08-13T17:38:42.000Z","dependencies_parsed_at":"2024-09-18T03:46:38.954Z","dependency_job_id":"31b0fe03-aa18-4622-96ef-e2e7125153d5","html_url":"https://github.com/Codeception/module-playwright","commit_stats":{"total_commits":25,"total_committers":4,"mean_commits":6.25,"dds":"0.19999999999999996","last_synced_commit":"0720106e5bac3c82bc606fefca2fd838b2f5fb09"},"previous_names":["codeception/module-playwright"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Codeception/module-playwright","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeception%2Fmodule-playwright","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeception%2Fmodule-playwright/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeception%2Fmodule-playwright/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeception%2Fmodule-playwright/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Codeception","download_url":"https://codeload.github.com/Codeception/module-playwright/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeception%2Fmodule-playwright/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001543,"owners_count":26083102,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-06-01T08:09:11.037Z","updated_at":"2025-10-09T13:11:31.769Z","avatar_url":"https://github.com/Codeception.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Playwright module for Codeception\n\n🚀 This is the **first and the only module that allows [Playwright](https://playwright.dev) testing in PHP**. Playwright allows testing in Chrome, Firefox, Webkit (safari). It is faster and more reliable alternative to Selenium WebDriver. Finally it is available in PHP!\n\nThis module does not implement Playwright API in PHP, rather proxies requests to Playwright helper of [CodeceptJS](https://codecept.io). This is possible because Codeception and CodeceptJS share the same architecture principles, and the interface for web testing is quite the same.\n\n\u003e [!Note]\n\u003e This module can be used as a replacement for WebDriver module. Comparing to WebDriver module, Playwright module can **speed up your tests x3 times**, run in headless mode, record videos, and stack traces out of the box\n\n## Requirements\n\n* PHP 8.1+\n* NodeJS 20+\n\n## Installation\n\n\u003e [!Warning]\n\u003e This module is experimental. It is in early development stage. Please report any issues you find.\n\nInstall NodeJS part of this module, it will install Playwright and CodeceptJS\n\n```\nnpm install codeception-module-playwright\n```\nInstall Playwright browsers\n\n```\nnpx playwright install --with-deps\n```\n\nInstall PHP part of this module\n\n```bash\ncomposer require codeception/module-playwright --dev\n```\n\n## Configuration\n\nEnable module in `codeception.yml`:\n\n```yaml\nmodules:\n    enabled:\n        - Playwright:\n            url: 'http://localhost'\n            browser: 'chromium'\n            show: true\n```\nMost common config values are:\n\n* `url` - base url to open pages from\n* `browser` - either `chromium`, `firefox`, `webkit`\n* `show` - (default: `true`) to show browser or set to `false` to run tests in headless mode \n* `timeout` - (default: `5000`) timeout (in ms) for all Playwright operations\n* `pw_server` - (default: 'http://localhost:8191') url of Playwright Server \n* `pw_debug` - (default: `false`) print Playwright Server debug information\n* `video` - save video on fail\n* `trace` - save traces on fail\n\nMore configuration options are is listed on [CodeceptJS Playwright page](https://codecept.io/helpers/Playwright/#configuration)\n\n\n\u003e [!Tip]\n\u003e This module is designed as drop-in WebDriver module replacement, you can change `WebDriver` to `Playwright` in your tests and try how it works!\n\n\n## Usage\n\nPlaywright module requires NodeJS server to be running. Start the server manually:\n\n```\nnpx codeception-playwright-module\n```\n\nIf you want to start server automatically, use [RunProcess extension](https://codeception.com/extensions#RunProcess) from Codeception\n\n```yaml\nextensions:\n    enabled:\n        - Codeception\\Extension\\RunProcess:\n            0: npx codeception-playwright-module\n            sleep: 3 # wait 5 seconds for processes to boot\n```\n\nIf you start server on different host or port, run port with `--port` option:\n\n```\nnpx codeception-playwright-module --port 9999\n```\n\nAnd pass port to config\n\n```yaml\nmodules:\n    enabled:\n        - Playwright:\n            url: 'http://localhost'\n            browser: 'chromium'\n            show: true\n            pw_server: http://localhost:9999\n```\n\n## API\n\nThis module provides the same API as WebDriver module. You can try to use it in your tests without any changes.\n\nFor the full command list see [WebDriver module reference](https://codeception.com/docs/modules/WebDriver#dontSeeElement).\n\nPlaywright-specific commands are also available in [CodeceptJS Playwright Helper](https://codecept.io/helpers/Playwright/)\n\n## Example\n\n```php\n$I-\u003eamOnPage('/');\n$I-\u003eclick('#first .clickable');\n$I-\u003edontSeeInTitle('Error');\n$I-\u003efillField('Username', 'John');\n$I-\u003efillField('Password', '1233456');\n$I-\u003esee('Hello, world!');\n```\n\n## License MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeception%2Fmodule-playwright","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeception%2Fmodule-playwright","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeception%2Fmodule-playwright/lists"}