Class MuiSliderThumb
- java.lang.Object
-
- com.github.grossopa.selenium.core.component.AbstractDelegatedWebElement
-
- com.github.grossopa.selenium.core.component.DefaultWebComponent
-
- com.github.grossopa.selenium.component.mui.AbstractMuiComponent
-
- com.github.grossopa.selenium.component.mui.inputs.MuiSliderThumb
-
- All Implemented Interfaces:
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 MuiSliderThumb extends AbstractMuiComponent
The Thumb element ofMuiSlider- Since:
- 1.0
- Author:
- Jack Yin
-
-
Field Summary
Fields Modifier and Type Field Description static StringORIENTATION_HORIZONTALthe value of orientation when the slider is horizontalstatic StringORIENTATION_VERTICALthe value of orientation when the slider is vertical-
Fields inherited from class com.github.grossopa.selenium.component.mui.AbstractMuiComponent
config
-
-
Constructor Summary
Constructors Constructor Description MuiSliderThumb(org.openqa.selenium.WebElement element, com.github.grossopa.selenium.core.ComponentWebDriver driver, MuiConfig config)ConstructsMuiSliderThumbinstance with the delegated element and root driver
-
Method Summary
Modifier and Type Method Description StringgetComponentName()Gets the current component nameStringgetMaxValue()Gets the raw max value.StringgetMinValue()Gets the raw min value.StringgetOrientation()Gets the orientation of current thumb from attribute "aria-orientation".StringgetPercentage()Gets the percentage in string.StringgetValue()Gets the raw value.StringgetValueText()Gets the value text.booleanvalidate()Validates whether the component is the expected type.-
Methods inherited from class com.github.grossopa.selenium.component.mui.AbstractMuiComponent
isEnabled
-
Methods inherited from class com.github.grossopa.selenium.core.component.DefaultWebComponent
as, attributeContains, findComponent, findComponents, 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, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.grossopa.selenium.core.component.WebComponent
findElement, findElements
-
-
-
-
Field Detail
-
ORIENTATION_HORIZONTAL
public static final String ORIENTATION_HORIZONTAL
the value of orientation when the slider is horizontal- See Also:
- Constant Field Values
-
ORIENTATION_VERTICAL
public static final String ORIENTATION_VERTICAL
the value of orientation when the slider is vertical- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MuiSliderThumb
public MuiSliderThumb(org.openqa.selenium.WebElement element, com.github.grossopa.selenium.core.ComponentWebDriver driver, MuiConfig config)ConstructsMuiSliderThumbinstance with the delegated element and root driver- Parameters:
element- the delegated elementdriver- the root driverconfig- the mui configuration instance
-
-
Method Detail
-
getComponentName
public String getComponentName()
Description copied from class:AbstractMuiComponentGets the current component name- Specified by:
getComponentNamein classAbstractMuiComponent- Returns:
- the current component name
-
validate
public boolean validate()
Description copied from class:AbstractMuiComponentValidates whether the component is the expected type.- Overrides:
validatein classAbstractMuiComponent- Returns:
- true if the component matches the java type.
-
getOrientation
public String getOrientation()
Gets the orientation of current thumb from attribute "aria-orientation". possible values are "horizontal" and "vertical".- Returns:
- the orientation of current thumb. possible values are "horizontal" and "vertical".
-
getValueText
public String getValueText()
Gets the value text.- Returns:
- the value text
-
getMaxValue
public String getMaxValue()
Gets the raw max value.- Returns:
- the raw min value.
-
getMinValue
public String getMinValue()
Gets the raw min value.- Returns:
- the raw min value.
-
getValue
public String getValue()
Gets the raw value.- Returns:
- the raw value.
-
getPercentage
public String getPercentage()
Gets the percentage in string.- Returns:
- the percentage in string
-
-