mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: add bringToFront for BiDi (#10685)
This commit is contained in:
parent
7ecfe150a1
commit
d9a596511e
@ -48,6 +48,10 @@ interface Commands {
|
|||||||
returnType: Bidi.Script.AddPreloadScriptResult;
|
returnType: Bidi.Script.AddPreloadScriptResult;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
'browsingContext.activate': {
|
||||||
|
params: Bidi.BrowsingContext.ActivateParameters;
|
||||||
|
returnType: Bidi.EmptyResult;
|
||||||
|
};
|
||||||
'browsingContext.create': {
|
'browsingContext.create': {
|
||||||
params: Bidi.BrowsingContext.CreateParameters;
|
params: Bidi.BrowsingContext.CreateParameters;
|
||||||
returnType: Bidi.BrowsingContext.CreateResult;
|
returnType: Bidi.BrowsingContext.CreateResult;
|
||||||
|
@ -712,6 +712,12 @@ export class Page extends PageBase {
|
|||||||
});
|
});
|
||||||
return new CDPSessionWrapper(this.mainFrame().context(), sessionId);
|
return new CDPSessionWrapper(this.mainFrame().context(), sessionId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override async bringToFront(): Promise<void> {
|
||||||
|
await this.#connection.send('browsingContext.activate', {
|
||||||
|
context: this.mainFrame()._id,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function isConsoleLogEntry(
|
function isConsoleLogEntry(
|
||||||
|
Loading…
Reference in New Issue
Block a user