PlaywrightContext

Playwright\Behat\Context\PlaywrightContext

Ready-made steps for the most common browser interactions.
Selectors are Playwright selectors: CSS by default, plus text=, role= and
the other engines Playwright supports.

$ composer require playwright-php/playwright-behat

Methods

iAmOn()

void
function iAmOn(string $url): void

iClickOn()

void
function iClickOn(string $selector): void

iFillWith()

void
function iFillWith(string $selector, string $value): void

iShouldSee()

void
function iShouldSee(string $text): void

iTakeAScreenshotNamed()

void
function iTakeAScreenshotNamed(string $name): void