YSYSbrowser0.11.2
Patchright 原生参考 / YSBROWSER SDK

原生 Disposable

原生 API 目录 · 手册目录

方法与属性索引

close

同步

Python · API 签名
def close(self) -> None

异步

Python · API 签名
async def close(self) -> None

dispose

同步

Python · API 签名
def dispose(self) -> None

Disposable.dispose

Removes the associated resource. For example, removes the init script installed via page.add_init_script() or browser_context.add_init_script().

异步

Python · API 签名
async def dispose(self) -> None

Disposable.dispose

Removes the associated resource. For example, removes the init script installed via page.add_init_script() or browser_context.add_init_script().

on

同步

Python · API 签名
def on(self, event: Any, f: Any) -> None

Registers the function f to the event name event.

异步

Python · API 签名
def on(self, event: Any, f: Any) -> None

Registers the function f to the event name event.

once

同步

Python · API 签名
def once(self, event: Any, f: Any) -> None

The same as self.on, except that the listener is automatically removed after being called.

异步

Python · API 签名
def once(self, event: Any, f: Any) -> None

The same as self.on, except that the listener is automatically removed after being called.

remove_listener

同步

Python · API 签名
def remove_listener(self, event: Any, f: Any) -> None

Removes the function f from event.

异步

Python · API 签名
def remove_listener(self, event: Any, f: Any) -> None

Removes the function f from event.

本地全文索引,无需联网 · Esc 关闭