ScenarioListener
Playwright\Behat\EventListener\ScenarioListener
Closes the scenario page after each scenario (saving a screenshot first
when it failed) and the browser after the run.
$ composer require playwright-php/playwright-behat
Methods
__construct()
function __construct(private readonly PlaywrightManager $manager)
getSubscribedEvents()
arrayfunction getSubscribedEvents(): array
afterScenario()
voidfunction afterScenario(AfterScenarioTested $event): void
afterExercise()
voidfunction afterExercise(): void