chore: back-forward in bidi (#32670)
This commit is contained in:
parent
375a1c4982
commit
8b84b20dd0
|
|
@ -319,12 +319,18 @@ export class BidiPage implements PageDelegate {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
goBack(): Promise<boolean> {
|
async goBack(): Promise<boolean> {
|
||||||
throw new Error('Method not implemented.');
|
return await this._session.send('browsingContext.traverseHistory', {
|
||||||
|
context: this._session.sessionId,
|
||||||
|
delta: -1,
|
||||||
|
}).then(() => true).catch(() => false);
|
||||||
}
|
}
|
||||||
|
|
||||||
goForward(): Promise<boolean> {
|
async goForward(): Promise<boolean> {
|
||||||
throw new Error('Method not implemented.');
|
return await this._session.send('browsingContext.traverseHistory', {
|
||||||
|
context: this._session.sessionId,
|
||||||
|
delta: +1,
|
||||||
|
}).then(() => true).catch(() => false);
|
||||||
}
|
}
|
||||||
|
|
||||||
async forceGarbageCollection(): Promise<void> {
|
async forceGarbageCollection(): Promise<void> {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue