Class CheckboxGroupLocator<V>
java.lang.Object
com.vaadin.browserless.locator.Locator<CheckboxGroup<V>,CheckboxGroupLocator<V>>
com.vaadin.flow.component.checkbox.CheckboxGroupLocator<V>
- All Implemented Interfaces:
Clickable<CheckboxGroup<V>>
@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor")
public class CheckboxGroupLocator<V>
extends Locator<CheckboxGroup<V>,CheckboxGroupLocator<V>>
implements Clickable<CheckboxGroup<V>>
Generated locator for
CheckboxGroup, derived from
CheckboxGroupTester. 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
ConstructorsConstructorDescriptionCheckboxGroupLocator(CheckboxGroup<V> component) CheckboxGroupLocator(Class<V> vType) -
Method Summary
Modifier and TypeMethodDescriptionvoidDeselects all client usable items.voiddeselectItem(String selection) Deselects an item by its client string representation.voiddeselectItems(String... selection) Deselects multiple items by client string representation.voiddeselectItems(Collection<String> selection) Deselects items by client string representation.voidEnsures the component is in a usable state before interaction.Gets the component being tested.Get the list of currently selected items.voidSelects all client usable items.voidselectItem(String selection) Selects an item by its client string representation.voidselectItems(String... selection) Selects multiple items by client string representation.voidselectItems(Collection<String> selection) Selects multiple items by client string representation.voidupdateSelection(Collection<String> selection, BiConsumer<Collection<V>, Collection<V>> updater) Methods inherited from class com.vaadin.browserless.locator.Locator
atIndex, component, components, exists, inside, inside, invalidate, self, with, withAriaLabel, withAriaLabelContaining, withAttribute, withAttribute, withCaption, withCaptionContaining, withClassName, withCondition, withId, withLabel, withLabelContaining, withoutAttribute, withoutAttribute, withoutClassName, withoutTheme, withText, withTextContaining, withTheme, withValueMethods 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, rightClick
-
Constructor Details
-
CheckboxGroupLocator
-
CheckboxGroupLocator
-
-
Method Details
-
getComponent
Description copied from interface:ClickableGets the component being tested.- Specified by:
getComponentin interfaceClickable<V>- 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<V>
-
selectItem
Selects an item by its client string representation. Javadoc copied fromCheckboxGroupTester.selectItem(java.lang.String).- Parameters:
selection- item string representation
-
selectItems
Selects multiple items by client string representation. Javadoc copied fromCheckboxGroupTester.selectItems(java.lang.String[]).- Parameters:
selection- items string representation
-
selectItems
Selects multiple items by client string representation. Javadoc copied fromCheckboxGroupTester.selectItems(java.util.Collection).- Parameters:
selection- items string representation
-
selectAll
public void selectAll()Selects all client usable items. Javadoc copied fromCheckboxGroupTester.selectAll(). -
deselectItem
Deselects an item by its client string representation. Javadoc copied fromCheckboxGroupTester.deselectItem(java.lang.String).- Parameters:
selection- item string representation
-
deselectItems
Deselects multiple items by client string representation. Javadoc copied fromCheckboxGroupTester.deselectItems(java.lang.String[]).- Parameters:
selection- items string representation
-
deselectItems
Deselects items by client string representation. Javadoc copied fromCheckboxGroupTester.deselectItems(java.util.Collection).- Parameters:
selection- items string representation
-
deselectAll
public void deselectAll()Deselects all client usable items. Javadoc copied fromCheckboxGroupTester.deselectAll(). -
getSelected
Get the list of currently selected items. Javadoc copied fromCheckboxGroupTester.getSelected().- Returns:
- current selection, or an empty list. Never null.
-
updateSelection
public void updateSelection(Collection<String> selection, BiConsumer<Collection<V>, Collection<V>> updater)
-