Class JavascriptDialogOpening


  • public class JavascriptDialogOpening
    extends java.lang.Object
    Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open
    • Method Summary

      Modifier and Type Method Description
      java.lang.String getDefaultPrompt()
      Default dialog prompt.
      java.lang.String getMessage()
      Message that will be displayed by the dialog.
      DialogType getType()
      Dialog type.
      java.lang.String getUrl()
      Frame url.
      java.lang.Boolean isHasBrowserHandler()
      True iff browser is capable showing or acting on the given dialog.
      void setDefaultPrompt​(java.lang.String defaultPrompt)
      Default dialog prompt.
      void setHasBrowserHandler​(java.lang.Boolean hasBrowserHandler)
      True iff browser is capable showing or acting on the given dialog.
      void setMessage​(java.lang.String message)
      Message that will be displayed by the dialog.
      void setType​(DialogType type)
      Dialog type.
      void setUrl​(java.lang.String url)
      Frame url.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JavascriptDialogOpening

        public JavascriptDialogOpening()
    • Method Detail

      • getUrl

        public java.lang.String getUrl()
        Frame url.
      • setUrl

        public void setUrl​(java.lang.String url)
        Frame url.
      • getMessage

        public java.lang.String getMessage()
        Message that will be displayed by the dialog.
      • setMessage

        public void setMessage​(java.lang.String message)
        Message that will be displayed by the dialog.
      • getType

        public DialogType getType()
        Dialog type.
      • setType

        public void setType​(DialogType type)
        Dialog type.
      • isHasBrowserHandler

        public java.lang.Boolean isHasBrowserHandler()
        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.
      • setHasBrowserHandler

        public void setHasBrowserHandler​(java.lang.Boolean hasBrowserHandler)
        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.lang.String getDefaultPrompt()
        Default dialog prompt.
      • setDefaultPrompt

        public void setDefaultPrompt​(java.lang.String defaultPrompt)
        Default dialog prompt.