Package com.vaadin.flow.component.html
Class RangeInputLocator
java.lang.Object
com.vaadin.browserless.locator.Locator<RangeInput,RangeInputLocator>
com.vaadin.flow.component.html.RangeInputLocator
- All Implemented Interfaces:
Clickable<RangeInput>,HasAriaLabelFilter<RangeInput,,RangeInputLocator> HasValueFilter<RangeInput,Double, RangeInputLocator>
@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor")
public class RangeInputLocator
extends Locator<RangeInput,RangeInputLocator>
implements Clickable<RangeInput>, HasAriaLabelFilter<RangeInput,RangeInputLocator>, HasValueFilter<RangeInput,Double,RangeInputLocator>
Generated locator for
RangeInput, derived from
RangeInputTester. 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 TypeMethodDescriptionvoiddecrease()Decreases the value by the amount defined by component step.voiddecrease(int times) Decreases the value by a specified multiple of the component step setting.voidEnsures the component is in a usable state before interaction.Gets the component being tested.getValue()Get the current value of the component.voidincrease()Increase the value by the amount defined by component step.voidincrease(int times) Increases the value by a specified multiple of the component step setting.voidSet the value to the component if it is usable.Methods inherited from class com.vaadin.browserless.locator.Locator
atIndex, component, components, exists, inside, inside, invalidate, self, with, withAttribute, withAttribute, withClassName, withCondition, withId, withoutAttribute, withoutAttribute, withoutClassNameMethods 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.HasValueFilter
withValue
-
Constructor Details
-
RangeInputLocator
public RangeInputLocator() -
RangeInputLocator
-
-
Method Details
-
getComponent
Description copied from interface:ClickableGets the component being tested.- Specified by:
getComponentin interfaceClickable<RangeInput>- 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<RangeInput>
-
getValue
Get the current value of the component. Javadoc copied fromRangeInputTester.getValue().- Returns:
- current component value
- Throws:
IllegalStateException- if component not visible
-
setValue
Set the value to the component if it is usable.For a non interactable component an IllegalStateException will be thrown as the end user would not be able to set a value.
The value must be in the component min - max range, and should be valid according to the step scale factor, otherwise anIllegalArgumentExceptionis thrown. Javadoc copied fromRangeInputTester.setValue(java.lang.Double).- Parameters:
value- value to set- Throws:
IllegalStateException- if component is not interactableIllegalArgumentException- if the value is not valid based on min, max and step settings.
-
increase
public void increase()Increase the value by the amount defined by component step.
If the step is not defined, anIllegalStateExceptionis thrown. AnIllegalArgumentExceptionis thrown if increase operation exceeds the max boundaries. Javadoc copied fromRangeInputTester.increase().- Throws:
IllegalStateException- if component is not interactable or the step is not defined.
-
increase
public void increase(int times) Increases the value by a specified multiple of the component step setting.
If the step is not defined, anIllegalStateExceptionis thrown. AnIllegalArgumentExceptionis thrown if increase operation exceeds the max boundaries. Javadoc copied fromRangeInputTester.increase(int).- Parameters:
times- The number of times the component step value should be multiplied before adding to the component value. Must be a non-negative integer.- Throws:
IllegalArgumentException- If thetimesparameter is a negative integer.IllegalStateException- if component is not interactable or the step is not defined.
-
decrease
public void decrease()Decreases the value by the amount defined by component step.
If the step is not defined, anIllegalStateExceptionis thrown. AnIllegalArgumentExceptionis thrown if increase operation exceeds the min boundaries. Javadoc copied fromRangeInputTester.decrease().- Throws:
IllegalStateException- if component is not interactable or the step is not defined.
-
decrease
public void decrease(int times) Decreases the value by a specified multiple of the component step setting.
If the step is not defined, anIllegalStateExceptionis thrown. AnIllegalArgumentExceptionis thrown if increase operation exceeds the min boundaries. Javadoc copied fromRangeInputTester.decrease(int).- Parameters:
times- The number of times the component step value should be multiplied before subtracting from the component value. Must be a non-negative integer.- Throws:
IllegalArgumentException- If thetimesparameter is a negative integer.IllegalStateException- if component is not interactable or the step is not defined.
-