(context: BrowserContext, extensionId: string)
| 88 | |
| 89 | /** Open the options page and wait for it to load */ |
| 90 | export async function openOptionsPage(context: BrowserContext, extensionId: string): Promise<Page> { |
| 91 | const page = await context.newPage(); |
| 92 | await page.goto(`chrome-extension://${extensionId}/src/options.html`); |
| 93 | await page.waitForLoadState("domcontentloaded"); |
| 94 | return page; |
| 95 | } |
| 96 | |
| 97 | /** Open the popup page and wait for it to load */ |
| 98 | export async function openPopupPage(context: BrowserContext, extensionId: string): Promise<Page> { |
no outgoing calls