Class JavascriptDialogOpening
- java.lang.Object
-
- org.openqa.selenium.devtools.v103.page.model.JavascriptDialogOpening
-
public class JavascriptDialogOpening extends java.lang.Object
Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.
-
-
Constructor Summary
Constructors Constructor Description JavascriptDialogOpening(java.lang.String url, java.lang.String message, DialogType type, java.lang.Boolean hasBrowserHandler, java.util.Optional<java.lang.String> defaultPrompt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.String>
getDefaultPrompt()
Default dialog prompt.java.lang.Boolean
getHasBrowserHandler()
True iff browser is capable showing or acting on the given dialog.java.lang.String
getMessage()
Message that will be displayed by the dialog.DialogType
getType()
Dialog type.java.lang.String
getUrl()
Frame url.
-
-
-
Constructor Detail
-
JavascriptDialogOpening
public JavascriptDialogOpening(java.lang.String url, java.lang.String message, DialogType type, java.lang.Boolean hasBrowserHandler, java.util.Optional<java.lang.String> defaultPrompt)
-
-
Method Detail
-
getUrl
public java.lang.String getUrl()
Frame url.
-
getMessage
public java.lang.String getMessage()
Message that will be displayed by the dialog.
-
getType
public DialogType getType()
Dialog type.
-
getHasBrowserHandler
public java.lang.Boolean getHasBrowserHandler()
True iff browser is capable showing or acting on the given dialog. When browser has no dialog handler for given target, calling alert while Page domain is engaged will stall the page execution. Execution can be resumed via calling Page.handleJavaScriptDialog.
-
getDefaultPrompt
public java.util.Optional<java.lang.String> getDefaultPrompt()
Default dialog prompt.
-
-