public class PopUpDialog extends AbstractVaadinPageComponent
Page object component that represents a pop-up dialog
Copyright 2017 (C) by Martin Ganserer
| Modifier and Type | Field and Description |
|---|---|
static String |
POPUP_BUTTON_OK_XPATH |
static String |
POPUP_BUTTON_UPLOAD_XPATH |
static String |
POPUP_BUTTON_YES_XPATH |
static String |
POPUP_FILE_INPUT_XPATH |
static String |
POPUP_XPATH |
AJAX_POLLING_INTERVAL_MILLISECONDS, ATTR_NAME_CLASS, ATTR_NAME_SELECTED, ATTR_NAME_STYLE, ATTR_NAME_VALUE, driver, HTML_LIST_ITEM, ITEM_DELIMITER, logger, NEW_LINE, ROW_OFFSET_X, ROW_OFFSET_Y, testContext| Constructor and Description |
|---|
PopUpDialog(AbstractPageObject pageObject)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeDialog()
Close the dialog
|
void |
validateStatus(PageActionResult actionResult)
Search for a visible pop-up dialog and compare its status with the expected action result
|
createPageObject, waitForPendingAjaxRequestsassertEquals, assertNotNull, assertTrue, delayPageLoad, doubleClickElement, fail, fail, findWebElement, findWebElement, findWebElementByXPath, findWebElementsByXPath, getDriver, getLogger, getTestContext, moveToElement, scrollTo, setInputFieldValue, setLogger, validateInputFieldValue, waitUntilVisiblepublic static final String POPUP_XPATH
public static final String POPUP_BUTTON_YES_XPATH
public static final String POPUP_BUTTON_OK_XPATH
public static final String POPUP_FILE_INPUT_XPATH
public static final String POPUP_BUTTON_UPLOAD_XPATH
public PopUpDialog(AbstractPageObject pageObject)
pageObject - public void validateStatus(PageActionResult actionResult)
actionResult - AssertionError - if the status validation either has failed, or an element could not be foundpublic void closeDialog()
AssertionError - if the button for closing the dialog could not be foundCopyright © 2019. All rights reserved.