Class DialogElement

java.lang.Object
com.vaadin.testbench.TestBenchElement
com.vaadin.flow.component.dialog.testbench.DialogElement
All Implemented Interfaces:
CanCompareScreenshots, HasCallFunction, HasDriver, HasElementQuery, HasPropertySettersGetters, HasSearchContext, HasTestBenchCommandExecutor, org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement, org.openqa.selenium.WrapsElement

public class DialogElement extends TestBenchElement
A TestBench element representing a <vaadin-dialog> element.
  • Constructor Details

    • DialogElement

      public DialogElement()
  • Method Details

    • isOpen

      public boolean isOpen()
      Checks whether the dialog is shown.
      Returns:
      true if the dialog is shown, false otherwise
    • getContext

      public org.openqa.selenium.SearchContext getContext()
      Description copied from class: TestBenchElement
      Returns this TestBenchElement cast to a SearchContext. Method provided for compatibility and consistency.
      Specified by:
      getContext in interface HasSearchContext
      Overrides:
      getContext in class TestBenchElement
      Returns:
      a SearchContext instance