Skip to content

Commit 3ffacb4

Browse files
committed
chore: rebase conflicts
1 parent 76ff677 commit 3ffacb4

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/tools/ToolDefinition.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ export type Context = Readonly<{
141141
recordedTraces(): TraceResult[];
142142
storeTraceRecording(result: TraceResult): void;
143143
getPageById(pageId: number): ContextPage;
144-
resolvePageById(pageId?: number): ContextPage;
145144
newPage(
146145
background?: boolean,
147146
isolatedContextName?: string,

src/tools/script.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ Example with arguments: \`(el) => {
8484
}
8585

8686
const mcpPage = cliArgs?.experimentalPageIdRouting
87-
? context.resolvePageById(request.params.pageId)
87+
? context.getPageById(request.params.pageId)
8888
: context.getSelectedMcpPage();
8989
const page: Page = mcpPage.pptrPage;
9090

9191
const args: Array<JSHandle<unknown>> = [];
9292
try {
9393
const frames = new Set<Frame>();
9494
for (const el of uidArgs ?? []) {
95-
const handle = await context.getElementByUid(el.uid, page);
95+
const handle = await mcpPage.getElementByUid(el.uid);
9696
frames.add(handle.frame);
9797
args.push(handle);
9898
}

0 commit comments

Comments
 (0)