Class RadioButtonGroupLocator<V>
java.lang.Object
com.vaadin.browserless.locator.Locator<RadioButtonGroup<V>,RadioButtonGroupLocator<V>>
com.vaadin.flow.component.radiobutton.RadioButtonGroupLocator<V>
- Type Parameters:
V- the RadioButtonGroup's V type parameter
- All Implemented Interfaces:
Clickable<RadioButtonGroup<V>>,HasAriaLabelFilter<RadioButtonGroup<V>,,RadioButtonGroupLocator<V>> HasLabelFilter<RadioButtonGroup<V>,,RadioButtonGroupLocator<V>> HasThemeFilter<RadioButtonGroup<V>,,RadioButtonGroupLocator<V>> HasValueFilter<RadioButtonGroup<V>,V, RadioButtonGroupLocator<V>>
@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor")
public class RadioButtonGroupLocator<V>
extends Locator<RadioButtonGroup<V>,RadioButtonGroupLocator<V>>
implements Clickable<RadioButtonGroup<V>>, HasLabelFilter<RadioButtonGroup<V>,RadioButtonGroupLocator<V>>, HasAriaLabelFilter<RadioButtonGroup<V>,RadioButtonGroupLocator<V>>, HasValueFilter<RadioButtonGroup<V>,V,RadioButtonGroupLocator<V>>, HasThemeFilter<RadioButtonGroup<V>,RadioButtonGroupLocator<V>>
Generated locator for
RadioButtonGroup, derived from
RadioButtonGroupTester. 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
ConstructorsConstructorDescriptionRadioButtonGroupLocator(RadioButtonGroup<V> component) Creates a locator already bound to the given component, so that the action methods run against it instead of against a lookup.RadioButtonGroupLocator(Class<V> vType) Creates a locator that searches for aRadioButtonGroup. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeselects item selection.voidEnsures the component is in a usable state before interaction.Gets the component being tested.Get the list of currently selected items.voidselectItem(String selection) Selects an item by its client string representation.Methods inherited from class com.vaadin.browserless.locator.Locator
atIndex, component, components, exists, inside, inside, invalidate, self, with, withAttribute, withAttribute, withClassName, withCondition, 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.HasAriaLabelFilter
withAriaLabel, withAriaLabelContainingMethods inherited from interface com.vaadin.browserless.locator.HasLabelFilter
withLabel, withLabelContainingMethods inherited from interface com.vaadin.browserless.locator.HasThemeFilter
withoutTheme, withoutTheme, withTheme, withThemeMethods inherited from interface com.vaadin.browserless.locator.HasValueFilter
withValue
-
Constructor Details
-
RadioButtonGroupLocator
Creates a locator that searches for aRadioButtonGroup.- Parameters:
vType- class witness pinning the V type parameter; the value is unused
-
RadioButtonGroupLocator
Creates a locator already bound to the given component, so that the action methods run against it instead of against a lookup.- Parameters:
component- the component the locator resolves to
-
-
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 fromRadioButtonGroupTester.selectItem(java.lang.String).- Parameters:
selection- item string representation
-
deselectItem
public void deselectItem()Deselects item selection. Javadoc copied fromRadioButtonGroupTester.deselectItem(). -
getSelected
Get the list of currently selected items. Javadoc copied fromRadioButtonGroupTester.getSelected().- Returns:
- current selection, or an empty list. Never null.
-