Skip to content

Commit 0585595

Browse files
fix
1 parent 95d377b commit 0585595

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/McpPage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class McpPage implements ContextPage {
112112

113113
waitForEventsAfterAction(
114114
action: () => Promise<unknown>,
115-
options?: {timeout?: number; dialog?: 'accept' | 'dismiss'},
115+
options?: {timeout?: number; handleDialog?: boolean},
116116
): Promise<void> {
117117
const helper = this.createWaitForHelper(
118118
this.cpuThrottlingRate,

src/tools/ToolDefinition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export type ContextPage = Readonly<{
210210
clearDialog(): void;
211211
waitForEventsAfterAction(
212212
action: () => Promise<unknown>,
213-
options?: {timeout?: number; dialog?: 'accept' | 'dismiss'},
213+
options?: {timeout?: number; handleDialog?: boolean},
214214
): Promise<void>;
215215
getInPageTools(): ToolGroup<InPageToolDefinition> | undefined;
216216
}>;

src/tools/script.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Example with arguments: \`(el) => {
8181
async () => {
8282
await performEvaluation(worker, fnString, [], response);
8383
},
84-
{dialog: 'accept'},
84+
{handleDialog: true},
8585
);
8686
return;
8787
}
@@ -106,7 +106,7 @@ Example with arguments: \`(el) => {
106106
async () => {
107107
await performEvaluation(evaluatable, fnString, args, response);
108108
},
109-
{dialog: 'accept'},
109+
{handleDialog: true},
110110
);
111111
} finally {
112112
void Promise.allSettled(args.map(arg => arg.dispose()));

0 commit comments

Comments
 (0)