Class AbstractMuiComponent

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected MuiConfig config  
      • 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 
      Modifier Constructor Description
      protected AbstractMuiComponent​(org.openqa.selenium.WebElement element, com.github.grossopa.selenium.core.ComponentWebDriver driver, MuiConfig config)
      Constructs an instance with the delegated element and root driver
    • Method Summary

      Modifier and Type Method Description
      abstract String getComponentName()
      Gets the current component name
      boolean isEnabled()  
      boolean validate()
      Validates whether the component is the expected type.
      • 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 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

    • Constructor Detail

      • AbstractMuiComponent

        protected AbstractMuiComponent​(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 element
        driver - the root driver
        config - the Material UI configuration
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface org.openqa.selenium.WebElement
        Overrides:
        isEnabled in class com.github.grossopa.selenium.core.component.AbstractDelegatedWebElement
      • validate

        public boolean validate()
        Validates whether the component is the expected type.
        Returns:
        true if the component matches the java type.
      • getComponentName

        public abstract String getComponentName()
        Gets the current component name
        Returns:
        the current component name