Class Dialog

    • Constructor Detail

      • Dialog

        public Dialog()
        Constructor for default coral dialog.
      • Dialog

        public Dialog​(java.lang.String cssSelector)
        Parameters:
        cssSelector - css selector
      • Dialog

        public Dialog​(com.codeborne.selenide.SelenideElement element)
    • Method Detail

      • title

        public com.codeborne.selenide.SelenideElement title()
        Returns:
        the title for this dialog.
      • content

        public com.codeborne.selenide.SelenideElement content()
        Returns:
        the content for this dialog.
      • isSuccess

        public boolean isSuccess()
        checks if the modal is from type success.
        Returns:
        true if the modal indicates success, false otherwise
      • isError

        public boolean isError()
        checks if the modal is from type error.
        Returns:
        true if the modal indicates error, false otherwise
      • clickDefault

        public <T extends Dialog> T clickDefault()
        Close this dialog with default action button.
        Type Parameters:
        T - type of Dialog
        Returns:
        Instance of current Dialog
      • clickPrimary

        public <T extends Dialog> T clickPrimary()
        Click on primary action.
        Type Parameters:
        T - type of Dialog
        Returns:
        Instance of current Dialog
      • clickSecondary

        public <T extends Dialog> T clickSecondary()
        Click on secondary action.
        Type Parameters:
        T - type of Dialog
        Returns:
        Instance of current Dialog
      • clickWarning

        public <T extends Dialog> T clickWarning()
        Click on warning action.
        Type Parameters:
        T - type of Dialog
        Returns:
        Instance of current Dialog
      • clickQuietAction

        public <T extends Dialog> T clickQuietAction()
        Click on quietaction action.
        Type Parameters:
        T - type of Dialog
        Returns:
        Instance of current Dialog