Download the PHP package codeception/module-playwright without Composer

On this page you can find all versions of the php package codeception/module-playwright. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package module-playwright

Playwright module for Codeception

🚀 This is the first and the only module that allows Playwright 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!

This module does not implement Playwright API in PHP, rather proxies requests to Playwright helper of CodeceptJS. This is possible because Codeception and CodeceptJS share the same architecture principles, and the interface for web testing is quite the same.

[!Note] 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

Requirements

Installation

[!Warning] This module is experimental. It is in early development stage. Please report any issues you find.

Install NodeJS part of this module, it will install Playwright and CodeceptJS

Install Playwright browsers

Install PHP part of this module

Configuration

Enable module in codeception.yml:

Most common config values are:

More configuration options are is listed on CodeceptJS Playwright page

[!Tip] This module is designed as drop-in WebDriver module replacement, you can change WebDriver to Playwright in your tests and try how it works!

Usage

Playwright module requires NodeJS server to be running. Playwright module will start it and stop automatically. Default port is 8191.

If you want to disable automatic server start, set start option to false:

In this case you can start the server manually:

Please check that server can be started with no issues.

If you start server on different host or port, you can configure it:

API

This module provides the same API as WebDriver module. You can try to use it in your tests without any changes.

For the full command list see WebDriver module reference.

Playwright-specific commands are also available in CodeceptJS Playwright Helper

Example

License MIT


All versions of module-playwright with dependencies

PHP Build Version
Package Version
Requires codeception/codeception Version ^5.0
symfony/process Version ^6 || ^7
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package codeception/module-playwright contains the following files

Loading the files please wait ....