Playwright Behat API

Public classes extracted from this package. It is a companion to the library, so the reference lives here rather than in the main reference.

$ composer require playwright-php/playwright-behat
Playwright\Behat\Exception\ExpectationFailedException Thrown by assertion steps when the page does not match the expectation.
Playwright\Behat\Context\PlaywrightContext Ready-made steps for the most common browser interactions.
Playwright\Behat\PlaywrightManager Owns the Playwright client and browser for the whole Behat run and hands
Playwright\Behat\Context\RawPlaywrightContext Base class for project contexts that drive the browser without inheriting
Playwright\Behat\EventListener\ScenarioListener Closes the scenario page after each scenario (saving a screenshot first
Playwright\Behat\Context\PlaywrightAwareContext A context that receives the shared PlaywrightManager before the run starts.