RawPlaywrightContext

Playwright\Behat\Context\RawPlaywrightContext

Base class for project contexts that drive the browser without inheriting
the built-in steps. Extend it and use getPage() in your own step methods.

$ composer require playwright-php/playwright-behat

Methods

setPlaywrightManager()

void
function setPlaywrightManager(PlaywrightManager $manager): void

getPlaywrightManager()

PlaywrightManager
function getPlaywrightManager(): PlaywrightManager

getPage()

PageInterface

The page of the current scenario, opened on first call.

function getPage(): PageInterface

getBrowser()

BrowserInterface
function getBrowser(): BrowserInterface