Class DialogWindow<T extends DialogWindow<T>>

Type Parameters:
T - type of dialog class
All Implemented Interfaces:
SpecificConditionHandler, ByLocator, SelenideElementWrapper<T>

public abstract class DialogWindow<T extends DialogWindow<T>> extends Composite<T>
Abstract class for dialog windows.
  • Constructor Details

    • DialogWindow

      public DialogWindow()
  • Method Details

    • check

      public com.codeborne.selenide.CheckResult check(SpecificCondition condition)
      Description copied from interface: SpecificConditionHandler
      Checks whether the current handler matches the passed SpecificCondition.
      Specified by:
      check in interface SpecificConditionHandler
      Overrides:
      check in class AbstractSpecificConditionHandler<T extends DialogWindow<T>>
      Parameters:
      condition - condition to check
      Returns:
      CheckResult that contains CheckResult.Verdict.ACCEPT if the current handler matches the passed SpecificCondition, CheckResult.Verdict.REJECT otherwise
    • close

      public void close()
      Closes this dialog by clicking the close button.
    • getHeaderElement

      protected com.codeborne.selenide.SelenideElement getHeaderElement()
      Returns:
      SelenideElement of the dialog header element
    • getCloseButtonElement

      protected com.codeborne.selenide.SelenideElement getCloseButtonElement()
      Returns:
      SelenideElement of the close dialog button