Esc

Start typing to search the docs

FirefoxExtension

2 min read · 318 words

View as Markdown

@openpolyfill/firefox-addon-playwright-harness


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

Interface: FirefoxExtension

Defined in: src/types.ts:93

Properties

background?

readonly optional background?: FirefoxBackground

Defined in: src/types.ts:95


id

readonly id: string

Defined in: src/types.ts:94


installPath

installPath: string

Defined in: src/types.ts:99

Current directory or XPI source path; updated when the extension is replaced.


isolated

readonly isolated: FirefoxIsolatedPage

Defined in: src/types.ts:96


isolatedContexts

readonly isolatedContexts: FirefoxIsolatedContexts

Defined in: src/types.ts:97

Methods

activateAction()

Call Signature

activateAction(page, kind?): Promise<Page>

Defined in: src/types.ts:100

Parameters
page

Page

kind?

ActionKind

Returns

Promise<Page>

Call Signature

activateAction(page, kind, options): Promise<void>

Defined in: src/types.ts:101

Parameters
page

Page

kind

ActionKind

options
waitForPopup

false

Returns

Promise<void>


activateSidebar()

activateSidebar(page): Promise<Page>

Defined in: src/types.ts:102

Parameters

page

Page

Returns

Promise<Page>


close()

close(): Promise<void>

Defined in: src/types.ts:113

Alias for uninstalling this extension.

Returns

Promise<void>


disable()

disable(): Promise<void>

Defined in: src/types.ts:109

Disable this extension and invalidate its background and UI contexts.

Returns

Promise<void>


enable()

enable(): Promise<void>

Defined in: src/types.ts:107

Enable this extension and refresh its background context, if any.

Returns

Promise<void>


reload()

reload(): Promise<void>

Defined in: src/types.ts:105

Reload the extension while preserving this handle’s identity.

Returns

Promise<void>


uninstall()

uninstall(): Promise<void>

Defined in: src/types.ts:111

Uninstall this extension and remove it from the collection.

Returns

Promise<void>


waitForPopup()

waitForPopup(options?): Promise<Page>

Defined in: src/types.ts:103

Parameters

options?
timeout?

number

Returns

Promise<Page>