Class AbstractMuiComponent
- java.lang.Object
-
- com.github.grossopa.selenium.core.component.AbstractDelegatedWebElement
-
- com.github.grossopa.selenium.core.component.DefaultWebComponent
-
- com.github.grossopa.selenium.component.mui.AbstractMuiComponent
-
- 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
- Direct Known Subclasses:
MuiAccordion,MuiAccordionActions,MuiAccordionDetails,MuiAccordionSummary,MuiAppBar,MuiAvatar,MuiBackdrop,MuiBadge,MuiBottomNavigation,MuiBreadcrumbs,MuiButton,MuiButtonGroup,MuiCheckbox,MuiChip,MuiDivider,MuiFab,MuiLink,MuiList,MuiListItem,MuiMenuItem,MuiModal,MuiPager,MuiPickersBasePickerContainer,MuiPickersCalendarHeaderDaysHeader,MuiPickersCalendarHeaderSwitchHeader,MuiPickersCalendarTransitionContainer,MuiPickersYear,MuiPickersYearSelectionContainer,MuiRadio,MuiRadioGroup,MuiSelect,MuiSlider,MuiSliderThumb,MuiSnackbar,MuiSnackbarContent,MuiSwitch,MuiTabs,MuiTextField,MuiToolbar
public abstract class AbstractMuiComponent extends com.github.grossopa.selenium.core.component.DefaultWebComponentThe abstract Material UI component definition contains a list of methods that could be used commonly for all Material UI components.- Since:
- 1.0
- Author:
- Jack Yin
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractMuiComponent(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
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringgetComponentName()Gets the current component namebooleanisEnabled()booleanvalidate()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 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
-
config
protected final MuiConfig config
-
-
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 elementdriver- the root driverconfig- the Material UI configuration
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceorg.openqa.selenium.WebElement- Overrides:
isEnabledin classcom.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
-
-