Table of Contents

Class PageCloseOptions

Namespace
Microsoft.Playwright
Assembly
Microsoft.Playwright.dll
public class PageCloseOptions
Inheritance
PageCloseOptions
Inherited Members

Constructors

PageCloseOptions()

public PageCloseOptions()

PageCloseOptions(PageCloseOptions)

public PageCloseOptions(PageCloseOptions clone)

Parameters

clone PageCloseOptions

Properties

Reason

The reason to be reported to the operations interrupted by the page closure.

[JsonPropertyName("reason")]
public string? Reason { get; set; }

Property Value

string

RunBeforeUnload

Defaults to false. Whether to run the before unload page handlers.

[JsonPropertyName("runBeforeUnload")]
public bool? RunBeforeUnload { get; set; }

Property Value

bool?