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 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 ChannelOwner
adopt, disposeChannelOwner, handleEvent, runUntil, sendMessage, sendMessage, sendMessageAsync, toProtocolRef, withLogging, withWaitLoggingMethods inherited from class 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
-
dismiss
-
defaultValue
Description copied from interface:DialogIf dialog is prompt, returns default prompt value. Otherwise, returns empty string.- Specified by:
defaultValuein interfaceDialog
-
message
-
page
-
type
-