Package com.vaadin.flow.component.avatar
Class AvatarGroupLocator
java.lang.Object
com.vaadin.browserless.locator.Locator<AvatarGroup,AvatarGroupLocator>
com.vaadin.flow.component.avatar.AvatarGroupLocator
- All Implemented Interfaces:
Clickable<AvatarGroup>,HasThemeFilter<AvatarGroup,AvatarGroupLocator>
@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor")
public class AvatarGroupLocator
extends Locator<AvatarGroup,AvatarGroupLocator>
implements Clickable<AvatarGroup>, HasThemeFilter<AvatarGroup,AvatarGroupLocator>
Generated locator for
AvatarGroup, derived from
AvatarGroupTester. Filter steps are inherited from
Locator; action methods delegate to a fresh tester
around the resolved component, so behavioral changes belong on the
tester, not here.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEnsures the component is in a usable state before interaction.Gets the accessible label of the group, that is, theorinvalid reference
oneactive users phrase withinvalid reference
many{count}replaced by the total number of items.Gets the component being tested.getItems()Gets all items of the group, whether or not they are shown as individual avatars.Gets the abbreviation shown on the overflow avatar, such as"+3".Gets the items that do not fitAvatarGroup.getMaxItemsVisible()and are grouped behind the overflow avatar.Gets the items that are shown as individual avatars.Methods inherited from class com.vaadin.browserless.locator.Locator
atIndex, component, components, exists, inside, inside, invalidate, self, with, withAttribute, withAttribute, withClassName, withCondition, withId, withinSlot, withoutAttribute, withoutAttribute, withoutClassName, withTestIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.browserless.Clickable
click, click, click, middleClick, middleClick, rightClick, rightClickMethods inherited from interface com.vaadin.browserless.locator.HasThemeFilter
withoutTheme, withoutTheme, withTheme, withTheme
-
Constructor Details
-
AvatarGroupLocator
public AvatarGroupLocator() -
AvatarGroupLocator
-
-
Method Details
-
getComponent
Description copied from interface:ClickableGets the component being tested.- Specified by:
getComponentin interfaceClickable<AvatarGroup>- Returns:
- the component under test
-
ensureComponentIsUsable
public void ensureComponentIsUsable()Description copied from interface:ClickableEnsures the component is in a usable state before interaction.- Specified by:
ensureComponentIsUsablein interfaceClickable<AvatarGroup>
-
getItems
Gets all items of the group, whether or not they are shown as individual avatars. Javadoc copied fromAvatarGroupTester.getItems().- Returns:
- the items of the group
- Throws:
IllegalStateException- if the group is not visible to the user
-
getVisibleItems
Gets the items that are shown as individual avatars. Javadoc copied fromAvatarGroupTester.getVisibleItems().- Returns:
- the items shown as individual avatars
- Throws:
IllegalStateException- if the group is not visible to the user
-
getOverflowItems
Gets the items that do not fitAvatarGroup.getMaxItemsVisible()and are grouped behind the overflow avatar. Javadoc copied fromAvatarGroupTester.getOverflowItems().- Returns:
- the overflowing items, empty if nothing overflows
- Throws:
IllegalStateException- if the group is not visible to the user
-
getOverflowAbbreviation
Gets the abbreviation shown on the overflow avatar, such as"+3". Javadoc copied fromAvatarGroupTester.getOverflowAbbreviation().- Returns:
- the overflow abbreviation, or
nullif no items overflow and the overflow avatar is not shown - Throws:
IllegalStateException- if the group is not visible to the user
-
getActiveUsersLabel
Gets the accessible label of the group, that is, theorinvalid reference
oneactive users phrase withinvalid reference
many{count}replaced by the total number of items. Javadoc copied fromAvatarGroupTester.getActiveUsersLabel().- Returns:
- the accessible label, or
nullif no matching translation has been set on the component - Throws:
IllegalStateException- if the group is not visible to the user
-