Class RadioButtonLocator<V>
java.lang.Object
com.vaadin.browserless.locator.Locator<com.vaadin.flow.component.radiobutton.RadioButton<V>,RadioButtonLocator<V>>
com.vaadin.flow.component.radiobutton.RadioButtonLocator<V>
- Type Parameters:
V- the RadioButton's V type parameter
- All Implemented Interfaces:
Clickable<com.vaadin.flow.component.radiobutton.RadioButton<V>>
@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor")
public class RadioButtonLocator<V>
extends Locator<com.vaadin.flow.component.radiobutton.RadioButton<V>,RadioButtonLocator<V>>
implements Clickable<com.vaadin.flow.component.radiobutton.RadioButton<V>>
Generated locator for
RadioButton, derived from
RadioButtonTester. 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
ConstructorsConstructorDescriptionRadioButtonLocator(com.vaadin.flow.component.radiobutton.RadioButton<V> component) Creates a locator already bound to the given component, so that the action methods run against it instead of against a lookup.RadioButtonLocator(Class<V> vType) Creates a locator that searches for aRadioButton. -
Method Summary
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, middleClick, middleClick, rightClick, rightClick
-
Constructor Details
-
RadioButtonLocator
Creates a locator that searches for aRadioButton.- Parameters:
vType- class witness pinning the V type parameter; the value is unused
-
RadioButtonLocator
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>
-
click
public void click()If the component is usable, send click to component as if it was from the client. Checkbox status changes from unchecked to checked or vice versa. Javadoc copied fromRadioButtonTester.click().
-