Skip to main content
Version: 1.x

Interface: MatcherPage

Minimal page interface for matcher operations.

Remarks

Decouples matchers from full Playwright Page, enabling unit testing with lightweight mock objects.

Example

const page: MatcherPage = { evaluate: async (script) => ({}) };

Methods

evaluate()

evaluate<TResult>(script, arg?): Promise<TResult>

Executes a script in the browser context and returns the result.

Type Parameters

TResult

TResult

Parameters

script

string

arg?

unknown

Returns

Promise<TResult>