Skip to main content

Disposable

Disposable is returned from various methods to allow undoing the corresponding action. For example, page.add_init_script() returns a Disposable that can be used to remove the init script.


Methods​

close​

Added in: v1.59 disposable.close

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

Usage

disposable.close()

Returns