[core] WEBJS - add removeExposedFunction WPage

This commit is contained in:
devlikepro committed 2026-01-28 17:32:33 +07:00
1 parent 10bd4d6271
commit ff742d2e84
1 file changed
+13
+13
View File
@@ -99,6 +99,19 @@ export class WPage extends EventEmitter {
}
}
// removeExposedFunction
async removeExposedFunction(name: string) {
try {
return await this.page.removeExposedFunction(name);
} catch (err) {
this.emit(PAGE_CALL_ERROR_EVENT, {
method: 'removeExposedFunction',
error: err,
});
throw err;
}
}
async reload(options?: any): Promise<any> {
try {
return await this.page.reload(options);