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
class DialogImpl extends ChannelOwner implements Dialog
-
-
Field Summary
Fields Modifier and Type Field Description private PageImplpage-
Fields inherited from class com.microsoft.playwright.impl.ChannelOwner
connection, guid, initializer, type
-
-
Constructor Summary
Constructors Constructor Description DialogImpl(ChannelOwner parent, java.lang.String type, java.lang.String guid, com.google.gson.JsonObject initializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(java.lang.String promptText)Returns when the dialog has been accepted.java.lang.StringdefaultValue()If dialog is prompt, returns default prompt value.voiddismiss()Returns when the dialog has been dismissed.java.lang.Stringmessage()A message displayed in the dialog.PageImplpage()The page that initiated this dialog, if available.java.lang.Stringtype()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, withWaitLogging
-
Methods inherited from class com.microsoft.playwright.impl.LoggingSupport
logApi, logApiIfEnabled, logWithTimestamp, withLogging
-
-
-
-
Field Detail
-
page
private PageImpl page
-
-
Constructor Detail
-
DialogImpl
DialogImpl(ChannelOwner parent, java.lang.String type, java.lang.String guid, com.google.gson.JsonObject initializer)
-
-
Method Detail
-
accept
public void accept(java.lang.String promptText)
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
public java.lang.String defaultValue()
Description copied from interface:DialogIf dialog is prompt, returns default prompt value. Otherwise, returns empty string.- Specified by:
defaultValuein interfaceDialog
-
message
public java.lang.String message()
Description copied from interface:DialogA message displayed in the dialog.
-
page
public PageImpl page()
Description copied from interface:DialogThe page that initiated this dialog, if available.
-
-