Esc

Start typing to search the docs

FirefoxBackground

1 min read · 115 words

View as Markdown

@openpolyfill/firefox-addon-playwright-harness


@openpolyfill/firefox-addon-playwright-harness / FirefoxBackground

Interface: FirefoxBackground

Defined in: src/types.ts:63

Methods

evaluate()

evaluate<R>(pageFunction, …args): Promise<R>

Defined in: src/types.ts:64

Type Parameters

R

R = unknown

Parameters

pageFunction

string | ((…args) => R | Promise<R>)

args

…unknown[]

Returns

Promise<R>


waitForFunction()

waitForFunction<R>(pageFunction, arg?, options?): Promise<R>

Defined in: src/types.ts:68

Type Parameters

R

R = unknown

Parameters

pageFunction

string | ((…args) => R | Promise<R>)

arg?

unknown

options?

EvaluateOptions

Returns

Promise<R>