Class 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 of MuiSlider
    Since:
    1.0
    Author:
    Jack Yin
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String ORIENTATION_HORIZONTAL
      the value of orientation when the slider is horizontal
      static String ORIENTATION_VERTICAL
      the value of orientation when the slider is vertical
      • Fields inherited from class com.github.grossopa.selenium.core.component.DefaultWebComponent

        driver
      • Fields inherited from class com.github.grossopa.selenium.core.component.AbstractDelegatedWebElement

        element
    • Constructor Summary

      Constructors 
      Constructor Description
      MuiSliderThumb​(org.openqa.selenium.WebElement element, com.github.grossopa.selenium.core.ComponentWebDriver driver, MuiConfig config)
      Constructs MuiSliderThumb instance with the delegated element and root driver
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getComponentName()
      Gets the current component name
      String getMaxValue()
      Gets the raw max value.
      String getMinValue()
      Gets the raw min value.
      String getOrientation()
      Gets the orientation of current thumb from attribute "aria-orientation".
      String getPercentage()
      Gets the percentage in string.
      String getValue()
      Gets the raw value.
      String getValueText()
      Gets the value text.
      boolean validate()
      Validates whether the component is the expected type.
      • Methods inherited from class com.github.grossopa.selenium.core.component.DefaultWebComponent

        as, attributeContains, findComponent, findComponentAs, findComponents, findComponentsAs, 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 interface org.openqa.selenium.internal.HasIdentity

        getId
      • Methods inherited from interface org.openqa.selenium.interactions.Locatable

        getCoordinates
      • Methods inherited from interface org.openqa.selenium.TakesScreenshot

        getScreenshotAs
      • Methods inherited from interface com.github.grossopa.selenium.core.component.WebComponent

        findElement, findElements
      • Methods inherited from interface org.openqa.selenium.WebElement

        clear, click, getAttribute, getCssValue, getLocation, getRect, getSize, getTagName, getText, isDisplayed, isSelected, sendKeys, submit
      • Methods inherited from interface org.openqa.selenium.WrapsDriver

        getWrappedDriver
      • Methods inherited from interface org.openqa.selenium.WrapsElement

        getWrappedElement
    • 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)
        Constructs MuiSliderThumb instance with the delegated element and root driver
        Parameters:
        element - the delegated element
        driver - the root driver
        config - the mui configuration instance
    • Method Detail

      • validate

        public boolean validate()
        Description copied from class: AbstractMuiComponent
        Validates whether the component is the expected type.
        Overrides:
        validate in class AbstractMuiComponent
        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