Package com.microsoft.playwright.impl
Class DialogImpl
java.lang.Object
com.microsoft.playwright.impl.LoggingSupport
com.microsoft.playwright.impl.ChannelOwner
com.microsoft.playwright.impl.DialogImpl
- All Implemented Interfaces:
Dialog
-
Field Summary
FieldsFields inherited from class com.microsoft.playwright.impl.ChannelOwner
connection, guid, initializer, type -
Constructor Summary
ConstructorsConstructorDescriptionDialogImpl(ChannelOwner parent, String type, String guid, com.google.gson.JsonObject initializer) -
Method Summary
Modifier and TypeMethodDescriptionvoidReturns when the dialog has been accepted.If dialog is prompt, returns default prompt value.voiddismiss()Returns when the dialog has been dismissed.message()A message displayed in the dialog.page()The page that initiated this dialog, if available.type()Returns dialog's type, can be one ofalert,beforeunload,confirmorprompt.Methods inherited from class com.microsoft.playwright.impl.ChannelOwner
adopt, disposeChannelOwner, handleEvent, runUntil, sendMessage, sendMessage, sendMessageAsync, toProtocolRef, withLogging, withWaitLoggingMethods inherited from class com.microsoft.playwright.impl.LoggingSupport
logApi, logApiIfEnabled, logWithTimestamp, withLogging
-
Field Details
-
page
-
-
Constructor Details
-
DialogImpl
DialogImpl(ChannelOwner parent, String type, String guid, com.google.gson.JsonObject initializer)
-
-
Method Details
-
accept
Description copied from interface:DialogReturns when the dialog has been accepted. -
dismiss
public void dismiss()Description copied from interface:DialogReturns when the dialog has been dismissed. -
defaultValue
Description copied from interface:DialogIf dialog is prompt, returns default prompt value. Otherwise, returns empty string.- Specified by:
defaultValuein interfaceDialog
-
message
Description copied from interface:DialogA message displayed in the dialog. -
page
Description copied from interface:DialogThe page that initiated this dialog, if available. -
type
Description copied from interface:DialogReturns dialog's type, can be one ofalert,beforeunload,confirmorprompt.
-