com.vaadin.flow.component.popover.testbench.

Class PopoverElement

java.lang.Object
com.vaadin.testbench.TestBenchElement
com.vaadin.flow.component.popover.testbench.PopoverElement

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 PopoverElement extends TestBenchElement

A TestBench element representing a <vaadin-popover> element.

  • Constructor Details

    • PopoverElement

      public PopoverElement()
  • Method Details

    • 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

    • isOpen

      public boolean isOpen()

      Checks whether the popover is shown.

      Returns:

      true if the popover is shown, false otherwise