Class MuiPickersDialog
- 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.core.MuiModal
-
- com.github.grossopa.selenium.component.mui.feedback.MuiDialog
-
- com.github.grossopa.selenium.component.mui.pickers.MuiPickersDialog
-
- 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 MuiPickersDialog extends MuiDialog
The default Pickers Dialog implementation- Since:
- 1.2
- Author:
- Jack Yin
-
-
Field Summary
-
Fields inherited from class com.github.grossopa.selenium.component.mui.AbstractMuiComponent
config
-
-
Constructor Summary
Constructors Constructor Description MuiPickersDialog(org.openqa.selenium.WebElement element, com.github.grossopa.selenium.core.ComponentWebDriver driver, MuiConfig config)Constructs an instance with the delegated element and root driverMuiPickersDialog(org.openqa.selenium.WebElement element, com.github.grossopa.selenium.core.ComponentWebDriver driver, MuiConfig config, org.openqa.selenium.By okButtonLocator, org.openqa.selenium.By cancelButtonLocator)Constructs an instance with the delegated element and root driver and customized locators for ok and cancel buttons.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MuiButtongetCancelButton()Finds the cancel buttonorg.openqa.selenium.BygetCancelButtonLocator()Gets the locator for locating cancel button in the action containerMuiButtongetOkButton()Finds the ok buttonorg.openqa.selenium.BygetOkButtonLocator()Gets the locator for locating ok button in the action containerMuiPickersBasePickerContainergetPickersContainer()Gets the pickers container with the toolbar (for year / day selection model switch) and the container for year / day selection.-
Methods inherited from class com.github.grossopa.selenium.component.mui.feedback.MuiDialog
getComponentName, getDialogActions, getDialogContent, getDialogTitle
-
Methods inherited from class com.github.grossopa.selenium.component.mui.AbstractMuiComponent
isEnabled, validate
-
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
-
-
-
-
Constructor Detail
-
MuiPickersDialog
public MuiPickersDialog(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
-
MuiPickersDialog
public MuiPickersDialog(org.openqa.selenium.WebElement element, com.github.grossopa.selenium.core.ComponentWebDriver driver, MuiConfig config, org.openqa.selenium.By okButtonLocator, org.openqa.selenium.By cancelButtonLocator)Constructs an instance with the delegated element and root driver and customized locators for ok and cancel buttons.- Parameters:
element- the delegated elementdriver- the root driverconfig- the Material UI configurationokButtonLocator- the locator for locating ok button within the actions containercancelButtonLocator- the locator for locating cancel button within the actions container
-
-
Method Detail
-
getPickersContainer
public MuiPickersBasePickerContainer getPickersContainer()
Gets the pickers container with the toolbar (for year / day selection model switch) and the container for year / day selection.- Returns:
- the inner element of
MuiPickersBasePickerContainer
-
getOkButton
public MuiButton getOkButton()
Finds the ok button- Returns:
- the ok button instance
-
getCancelButton
public MuiButton getCancelButton()
Finds the cancel button- Returns:
- the cancel button instance
-
getOkButtonLocator
public org.openqa.selenium.By getOkButtonLocator()
Gets the locator for locating ok button in the action container- Returns:
- the locator for locating ok button in the action container
-
getCancelButtonLocator
public org.openqa.selenium.By getCancelButtonLocator()
Gets the locator for locating cancel button in the action container- Returns:
- the locator for locating cancel button in the action container
-
-