Class AvatarGroupElement

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

    • AvatarGroupElement

      public AvatarGroupElement()
  • Method Details

    • getAvatarElement

      public AvatarElement getAvatarElement(int index) throws org.openqa.selenium.NoSuchElementException
      Gets the avatar element for the avatar with the given index.
      Parameters:
      index - the index to look for in the avatar group
      Returns:
      the first avatar element which matches the given index
      Throws:
      org.openqa.selenium.NoSuchElementException - if no match was found
    • getAriaLabel

      public String getAriaLabel()
      Gets the aria label that is pronounced by the screen reader.
      Returns:
      the aria label