Package com.microsoft.playwright
Class Page.CloseOptions
- java.lang.Object
-
- com.microsoft.playwright.Page.CloseOptions
-
-
Field Summary
Fields Modifier and Type Field Description StringreasonThe reason to be reported to the operations interrupted by the page closure.BooleanrunBeforeUnloadDefaults tofalse.
-
Constructor Summary
Constructors Constructor Description CloseOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page.CloseOptionssetReason(String reason)The reason to be reported to the operations interrupted by the page closure.Page.CloseOptionssetRunBeforeUnload(boolean runBeforeUnload)Defaults tofalse.
-
-
-
Field Detail
-
reason
public String reason
The reason to be reported to the operations interrupted by the page closure.
-
runBeforeUnload
public Boolean runBeforeUnload
Defaults tofalse. Whether to run the before unload page handlers.
-
-
Method Detail
-
setReason
public Page.CloseOptions setReason(String reason)
The reason to be reported to the operations interrupted by the page closure.
-
setRunBeforeUnload
public Page.CloseOptions setRunBeforeUnload(boolean runBeforeUnload)
Defaults tofalse. Whether to run the before unload page handlers.
-
-