Disposable
Added in: v1.59Disposable is returned from various methods to allow undoing the corresponding action. For example, page.addInitScript() returns a Disposable that can be used to remove the init script.
Methods
disposable.dispose()
Added in: v1.59 asyncRemoves the associated resource. For example, removes the init script installed via page.addInitScript() or browserContext.addInitScript().