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()

array
function getSubscribedEvents(): array

afterScenario()

void
function afterScenario(AfterScenarioTested $event): void

afterExercise()

void
function afterExercise(): void