MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / openAgentProviderPage

Function openAgentProviderPage

e2e/utils.ts:199–204  ·  view source on GitHub ↗
(context: BrowserContext, extensionId: string)

Source from the content-addressed store, hash-verified

197
198/** Open the agent provider page */
199export async function openAgentProviderPage(context: BrowserContext, extensionId: string): Promise<Page> {
200 const page = await context.newPage();
201 await page.goto(`chrome-extension://${extensionId}/src/options.html#/agent/provider`);
202 await page.waitForLoadState("domcontentloaded");
203 return page;
204}
205
206/**
207 * 通过 chrome.storage 预设一个 Agent 模型配置,避免通过 UI 操作。

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected