Skip to content

Commit c993ca0

Browse files
authored
Merge pull request #365 from n0tlikethatplz/fix-ipage-evaluate-signature
Update IPage/IFrame evaluate function signature to match Page
2 parents 5b95dfc + 3481675 commit c993ca0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

specification/agent/browser/IFrame.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export interface IFrame extends ITypedEventEmitter<IFrameEvents> {
5353
retriesWaitingForLoad?: number;
5454
returnByValue?: boolean;
5555
includeCommandLineAPI?: boolean;
56+
timeoutMs?: number;
5657
},
5758
): Promise<T>;
5859

specification/agent/browser/IPage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export interface IPage extends ITypedEventEmitter<IPageEvents> {
3838

3939
setJavaScriptEnabled(enabled: boolean): Promise<void>;
4040

41-
evaluate<T>(expression: string): Promise<T>;
41+
evaluate<T>(expression: string, options?: { timeoutMs?: number; isolatedFromWebPageEnvironment?: boolean }): Promise<T>;
4242
addNewDocumentScript(
4343
script: string,
4444
isolateFromWebPageEnvironment: boolean,

0 commit comments

Comments
 (0)