Class BadgeElement

java.lang.Object
com.vaadin.testbench.TestBenchElement
com.vaadin.flow.component.badge.testbench.BadgeElement
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 BadgeElement extends TestBenchElement
A TestBench element representing a <vaadin-badge> element.
  • Constructor Details

    • BadgeElement

      public BadgeElement()
  • Method Details

    • getText

      public String getText()
      Gets the text content of the badge.
      Specified by:
      getText in interface org.openqa.selenium.WebElement
      Overrides:
      getText in class TestBenchElement
      Returns:
      the text content
    • getNumber

      public Integer getNumber()
      Gets the number displayed in the badge.
      Returns:
      the number, or null if not set
    • getIcon

      public TestBenchElement getIcon()
      Gets the icon element of the badge.
      Returns:
      the icon element, or null if not set