Class CheckboxLocator
java.lang.Object
com.vaadin.browserless.locator.Locator<Checkbox,CheckboxLocator>
com.vaadin.flow.component.checkbox.CheckboxLocator
- All Implemented Interfaces:
Clickable<Checkbox>,HasAriaLabelFilter<Checkbox,,CheckboxLocator> HasLabelFilter<Checkbox,,CheckboxLocator> HasThemeFilter<Checkbox,,CheckboxLocator> HasValueFilter<Checkbox,Boolean, CheckboxLocator>
@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor")
public class CheckboxLocator
extends Locator<Checkbox,CheckboxLocator>
implements Clickable<Checkbox>, HasLabelFilter<Checkbox,CheckboxLocator>, HasAriaLabelFilter<Checkbox,CheckboxLocator>, HasValueFilter<Checkbox,Boolean,CheckboxLocator>, HasThemeFilter<Checkbox,CheckboxLocator>
Generated locator for
Checkbox, derived from
CheckboxTester. 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 TypeMethodDescriptionvoidcheck()Checks the checkbox by clicking it, as a user would.voidvoidEnsures the component is in a usable state before interaction.Gets the component being tested.booleanChecks whether the checkbox is currently checked.voiduncheck()Unchecks the checkbox by clicking it, as a user would.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, 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
-
CheckboxLocator
public CheckboxLocator() -
CheckboxLocator
-
-
Method Details
-
getComponent
Description copied from interface:ClickableGets the component being tested.- Specified by:
getComponentin interfaceClickable<Checkbox>- 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<Checkbox>
-
isChecked
public boolean isChecked()Checks whether the checkbox is currently checked. Javadoc copied fromCheckboxTester.isChecked().- Returns:
trueif the checkbox is checked,falseotherwise
-
check
public void check()Checks the checkbox by clicking it, as a user would.Does nothing if the checkbox is already checked, since a user would not click it in that case. The checkbox must be usable either way. Javadoc copied from
CheckboxTester.check(). -
uncheck
public void uncheck()Unchecks the checkbox by clicking it, as a user would.Does nothing if the checkbox is already unchecked, since a user would not click it in that case. The checkbox must be usable either way. Javadoc copied from
CheckboxTester.uncheck(). -
click
-