Skip to main content
Version: 21.1.1

Page.close() method

Signature:

class Page {
close(options?: {runBeforeUnload?: boolean}): Promise<void>;
}

Parameters

ParameterTypeDescription
options{ runBeforeUnload?: boolean; }(Optional)

Returns:

Promise<void>