Class MuiSliderV5
- java.lang.Object
-
- com.github.grossopa.selenium.core.component.AbstractDelegatedWebElement
-
- com.github.grossopa.selenium.core.component.DefaultWebComponent
-
- com.github.grossopa.selenium.component.mui.v4.AbstractMuiComponent
-
- com.github.grossopa.selenium.component.mui.v4.inputs.MuiSlider
-
- com.github.grossopa.selenium.component.mui.v5.inputs.MuiSliderV5
-
- All Implemented Interfaces:
MuiComponent,com.github.grossopa.selenium.core.component.api.Slider<MuiSliderThumb>,com.github.grossopa.selenium.core.component.WebComponent,org.openqa.selenium.interactions.Locatable,org.openqa.selenium.internal.HasIdentity,org.openqa.selenium.SearchContext,org.openqa.selenium.TakesScreenshot,org.openqa.selenium.WebElement,org.openqa.selenium.WrapsDriver,org.openqa.selenium.WrapsElement
public class MuiSliderV5 extends MuiSlider
Sliders allow users to make selections from a range of values.- Since:
- 1.7
- Author:
- Jack Yin
- See Also:
- https://mui.com/components/slider/#continuous-sliders
-
-
Field Summary
-
Fields inherited from class com.github.grossopa.selenium.component.mui.v4.inputs.MuiSlider
COMPONENT_NAME, DEFAULT_INVERSE_SCALE_FUNCTION
-
Fields inherited from class com.github.grossopa.selenium.component.mui.v4.AbstractMuiComponent
config
-
-
Constructor Summary
Constructors Constructor Description MuiSliderV5(org.openqa.selenium.WebElement element, com.github.grossopa.selenium.core.ComponentWebDriver driver, MuiConfig config)Constructs an instance with the delegated element and root driverMuiSliderV5(org.openqa.selenium.WebElement element, com.github.grossopa.selenium.core.ComponentWebDriver driver, MuiConfig config, java.util.function.UnaryOperator<Double> inverseScaleFunction)Constructs an instance with the delegated element, root driver and customized scale function.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MuiSliderThumbcreateSliderThumb(org.openqa.selenium.WebElement thumbElement)StringtoString()Set<MuiVersion>versions()Gets all the supported versions-
Methods inherited from class com.github.grossopa.selenium.component.mui.v4.inputs.MuiSlider
equals, getAllThumbs, getComponentName, getFirstThumb, getInverseScaleFunction, getMaxValue, getMaxValueDouble, getMaxValueInteger, getMaxValueLong, getMinValue, getMinValueDouble, getMinValueInteger, getMinValueLong, getValue, getValueDouble, getValueInteger, getValueLong, hashCode, isInverted, isVertical, moveThumb, moveThumb, moveThumb, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue
-
Methods inherited from class com.github.grossopa.selenium.component.mui.v4.AbstractMuiComponent
config, isEnabled, validate
-
Methods inherited from class com.github.grossopa.selenium.core.component.DefaultWebComponent
as, attributeContains, driver, findComponent, findComponentAs, findComponents, findComponentsAs, isFocused, outerHTML, styleContains, to
-
Methods inherited from class com.github.grossopa.selenium.core.component.AbstractDelegatedWebElement
clear, click, findElement, findElements, getAttribute, getCoordinates, getCssValue, getId, getLocation, getRect, getScreenshotAs, getSize, getTagName, getText, getWrappedDriver, getWrappedElement, isDisplayed, isSelected, sendKeys, submit
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.grossopa.selenium.core.component.WebComponent
findElement, findElements
-
-
-
-
Constructor Detail
-
MuiSliderV5
public MuiSliderV5(org.openqa.selenium.WebElement element, com.github.grossopa.selenium.core.ComponentWebDriver driver, MuiConfig config)Constructs an instance with the delegated element and root driver- Parameters:
element- the delegated elementdriver- the root driverconfig- the Material UI configuration
-
MuiSliderV5
public MuiSliderV5(org.openqa.selenium.WebElement element, com.github.grossopa.selenium.core.ComponentWebDriver driver, MuiConfig config, java.util.function.UnaryOperator<Double> inverseScaleFunction)Constructs an instance with the delegated element, root driver and customized scale function.- Parameters:
element- the delegated elementdriver- the root driverconfig- the Material UI configurationinverseScaleFunction- the INVERSE function of the original scale function
-
-
Method Detail
-
versions
public Set<MuiVersion> versions()
Description copied from interface:MuiComponentGets all the supported versions- Specified by:
versionsin interfaceMuiComponent- Overrides:
versionsin classAbstractMuiComponent- Returns:
- all the supported versions
-
createSliderThumb
protected MuiSliderThumb createSliderThumb(org.openqa.selenium.WebElement thumbElement)
- Overrides:
createSliderThumbin classMuiSlider
-
-