public abstract class WebDriverAftBase extends JiraAwareAftBase
Modifier and Type | Field and Description |
---|---|
protected static org.openqa.selenium.chrome.ChromeDriverService |
chromeDriverService |
static String |
DATA_TABLE_TH_CSS
div.dataTables_wrapper thead th
|
protected org.openqa.selenium.WebDriver |
driver |
protected String |
jGrowlHeader |
static String |
LOOKUP_CRITERIA_NUMBER_NAME
lookupCriteria[number]
|
static String |
REGEX_ERROR
^[\s\S]*error[\s\S]*$"
|
static String |
REGEX_VALID
^[\s\S]*valid[\s\S]*$
|
static String |
RETURN_SELECTED_BUTTON_TEXT
return selected
|
static String |
RETURN_VALUE_LINK_TEXT
return value
|
static String |
SEARCH_XPATH_3
//button[contains(text(),'earch')]
|
protected String |
sessionId |
static String |
SHOW_INACTIVE
show inactive
|
static String |
SUB_COLLECTION_UIF_DISCLOSURE_SPAN_UIF_HEADER_TEXT_SPAN_XPATH
div.uif-group.uif-collectionGroup.uif-tableCollectionGroup.uif-tableSubCollection.uif-disclosure span.uif-headerText-span
|
protected String |
testMethodName |
org.junit.rules.TestName |
testName |
static String |
TIMEOUT_MESSAGE
timeout
|
protected String |
uniqueString |
protected String |
user |
protected int |
waitSeconds |
protected WebDriverScreenshotHelper |
webDriverScreenshotHelper |
shouldNavigate, testUrl
Constructor and Description |
---|
WebDriverAftBase() |
Modifier and Type | Method and Description |
---|---|
protected void |
acceptAlertIfPresent() |
static void |
afterClass() |
protected void |
alertAccept()
Accept the javascript alert (clicking OK)
|
protected void |
alertDismiss()
Dismiss the javascript alert (clicking Cancel)
|
protected boolean |
areAllMultiValueSelectsChecked() |
protected boolean |
areNoMultiValueSelectsChecked() |
protected void |
assertAttributeClassRegexDoesntMatch(String field,
String regex) |
protected void |
assertAttributeClassRegexMatches(String field,
String regex) |
protected void |
assertElementPresentInResultPages(org.openqa.selenium.By searchBy) |
protected void |
assertElementsPresentInResultPages(org.openqa.selenium.By[] searchBys) |
protected void |
assertEmptyInputByName(String name) |
protected void |
assertFocusTypeBlurError(String field,
String textToType) |
protected void |
assertFocusTypeBlurError(String field,
String[] errorInputs) |
protected void |
assertFocusTypeBlurValid(String field,
String textToType) |
protected void |
assertFocusTypeBlurValid(String field,
String[] validInputs) |
protected void |
assertFocusTypeBlurValidation(String field,
String[] errorInputs,
String[] validInputs) |
protected void |
assertFocusTypeTabError(String field,
String textToType) |
protected void |
assertJgrowlText(String jGrowlText) |
protected void |
assertLabelFor(String forElementId,
String labelText) |
protected void |
assertLabelWithTextPresent(String labelText) |
protected void |
assertMultiValueDeselectAllThisPage() |
protected void |
assertMultiValueSelectAllThisPage() |
protected void |
assertPopUpWindowUrl(org.openqa.selenium.By by,
String windowName,
String url)
Assert that clicking an element causes a popup window with a specific URL
Uses Selenium's findElements method which does not throw a test exception if not found.
|
protected void |
assertTextPresent(String[] text) |
protected void |
assertTextPresent(String[][] text) |
protected void |
assertTextPresent(String message,
String[] text) |
protected void |
assertTextPresentInResultPages(String[][] texts) |
protected void |
back() |
protected void |
check(org.openqa.selenium.By by) |
protected void |
checkById(String id) |
protected void |
checkByName(String name) |
protected void |
checkByXpath(String locator) |
protected void |
checkForIncidentReport() |
protected void |
checkForIncidentReport(String locator) |
protected void |
checkForIncidentReport(String locator,
JiraAwareFailable failable,
String message)
Deprecated.
|
protected void |
checkForIncidentReport(String locator,
String message)
Implement to check for Incident Report or other on screen errors, should call
JiraAwareFailable.fail(java.lang.String) to fail,
without calling any of the jiraAwareFail methods to avoid an infinite loop. |
static void |
chromeDriverService()
If WebDriverUtils.chromeDriverCreateCheck() returns a ChromeDriverService, start it.
|
protected void |
clearText(org.openqa.selenium.By by) |
protected void |
clearText(String selector) |
protected void |
clearTextByName(String name) |
protected void |
clearTextByXpath(String locator) |
protected void |
close() |
protected void |
closeAllOtherWindows(String handleToKeep) |
protected void |
closeAndQuitWebDriver() |
protected void |
colapseExpandByXpath(String clickLocator,
String visibleLocator) |
protected void |
determineImplicitWait() |
protected void |
determineJgrowlHeader() |
protected String |
determinePage() |
protected void |
determineTestMethodName() |
protected void |
determineUser() |
protected org.openqa.selenium.WebElement |
findButtonByText(String buttonText) |
protected List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by) |
protected List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by,
org.openqa.selenium.WebElement element) |
protected List<org.openqa.selenium.WebElement> |
findVisibleElements(org.openqa.selenium.By by) |
protected void |
fireEvent(String name,
String event) |
protected void |
fireEvent(String name,
String value,
String event) |
void |
fireMouseOverEvent(org.openqa.selenium.By by)
Actions.moveToElement(org.openqa.selenium.WebElement) |
void |
fireMouseOverEventById(String id)
Actions.moveToElement(org.openqa.selenium.WebElement) |
void |
fireMouseOverEventByName(String name)
Actions.moveToElement(org.openqa.selenium.WebElement) |
void |
fireMouseOverEventByXpath(String locator)
Actions.moveToElement(org.openqa.selenium.WebElement) |
String[] |
getAllWindowTitles()
WebDriver.getWindowHandles() |
protected String |
getBaseUrlString() |
protected int |
getCssCount(org.openqa.selenium.By by)
Uses Selenium's findElements method which does not throw a test exception if not found.
|
protected int |
getCssCount(String selector) |
protected String |
getDateTimeStampFormatted() |
protected String |
getDateToday() |
protected String |
getDateTomorrow() |
protected String |
getDescriptionBase() |
protected String |
getDescriptionUnique() |
protected org.openqa.selenium.WebDriver |
getDriver()
WebDriver used in fail and pass to display jGrowl messages.
|
protected org.openqa.selenium.WebElement |
getElementByAttribute(String attributeName) |
protected org.openqa.selenium.WebElement |
getElementByAttributeValue(String attributeName,
String value) |
protected org.openqa.selenium.WebElement |
getElementByDataAttribute(String dataAttributeName) |
protected org.openqa.selenium.WebElement |
getElementByDataAttributeValue(String dataAttributeName,
String value) |
protected List<org.openqa.selenium.WebElement> |
getElementsByAttributeValue(String attributeName,
String value) |
protected String |
getForLabelText(String forElementId)
Returns the label text of a label-for element
|
protected String |
getNavigationUrl()
Called by {see #enableBookmarkMode}.
|
protected String[] |
getSelectOptions(org.openqa.selenium.By by)
Uses Selenium's findElements for getting the options (findElement for the select) method which does not throw a test exception if not found.
|
protected String[] |
getSelectOptionsByName(String name) |
protected String[] |
getSelectOptionsByXpath(String locator) |
String |
getSessionId() |
protected String |
getText(org.openqa.selenium.By by) |
protected String |
getText(String locator) |
protected String |
getTextByClassName(String className) |
protected String |
getTextById(String id) |
protected String |
getTextByName(String name) |
protected String |
getTextByXpath(String locator) |
protected String |
getTitle() |
String |
getUserName()
"admin" by default.
|
protected void |
gotoIframeById(String iframeId) |
protected org.openqa.selenium.WebElement |
gotoIframeByXpath(String iframeXpath) |
protected void |
gotoLightBox() |
protected org.openqa.selenium.WebElement |
gotoLightBoxIframe() |
protected int |
howManyAreVisible(org.openqa.selenium.By by) |
protected String |
incidentReportMessage() |
protected boolean |
isChecked(org.openqa.selenium.By by) |
protected boolean |
isCheckedById(String id) |
protected boolean |
isCheckedByName(String name) |
protected boolean |
isCheckedByXpath(String locator) |
protected boolean |
isElementPresent(org.openqa.selenium.By by)
Uses Selenium's findElements method which does not throw a test exception if not found.
|
protected boolean |
isElementPresent(String locator)
Uses Selenium's findElements method which does not throw a test exception if not found.
|
protected boolean |
isElementPresentByDataAttributeValue(String dataAttributeName,
String dataAttributeValue) |
protected boolean |
isElementPresentById(String id) |
protected boolean |
isElementPresentByLinkText(String locator) |
protected boolean |
isElementPresentByName(String name) |
protected boolean |
isElementPresentByXpath(String locator) |
protected boolean |
isEnabled(org.openqa.selenium.By by) |
protected boolean |
isEnabledById(String id) |
protected boolean |
isEnabledByName(String name) |
protected boolean |
isEnabledByXpath(String locator) |
protected boolean |
isNextLinkEnabled() |
protected boolean |
isNotVisible(org.openqa.selenium.By by) |
protected Boolean |
isTextPresent(String text) |
protected Boolean |
isTextPresent(String[] texts) |
protected boolean |
isVisible(org.openqa.selenium.By[] bys) |
protected void |
javascriptErrorsReport() |
protected void |
jGrowl(String message) |
protected void |
jGrowlSticky(String message)
Sticky is used on fail, making a call to jGrowl(String) from this method will result
in an infinite loop if JGROWL_ERROR_FAILURE is true so please don't.
|
void |
login(org.openqa.selenium.WebDriver driver,
String userName,
JiraAwareFailable failable)
Logs in using the KRAD Login Page, if the JVM arg remote.autologin is set, auto login as admin will not be done.
|
protected void |
logout() |
protected String |
multiValueResultCount() |
protected void |
navigate()
Called by
AutomatedFunctionalTestBase.navigateInternal() , should navigate from the testUrl. |
protected void |
open(String url) |
protected void |
screenshot() |
protected void |
select(org.openqa.selenium.By by,
String selectText)
Uses Selenium's findElements method which does not throw a test exception if not found.
|
protected void |
selectByName(String name,
String selectText) |
protected void |
selectByXpath(String locator,
String selectText) |
protected void |
selectChildWindow() |
protected void |
selectParentWindow() |
protected void |
selectTopFrame() |
protected void |
selectWindow(String locator) |
void |
setDriver(org.openqa.selenium.WebDriver driver) |
void |
setTestMethodName(String testMethodName) |
void |
setUpSetUp() |
protected void |
startSession(Method method) |
void |
switchToWindow(String title)
If a window contains the given title switchTo it.
|
void |
tearDown()
Tear down test as configured.
|
void |
testSetUp()
Failures in testSetup cause the test to not be recorded.
|
protected void |
uncheck(org.openqa.selenium.By by) |
protected void |
uncheckByName(String name) |
protected void |
uncheckByXpath(String locator) |
protected void |
waitAndClick(org.openqa.selenium.By by) |
protected void |
waitAndClick(org.openqa.selenium.By by,
JiraAwareFailable failable) |
protected void |
waitAndClick(String locator) |
protected void |
waitAndClick(String locator,
String message) |
protected void |
waitAndClickAllByName(String name) |
protected void |
waitAndClickButtonByExactText(String buttonText) |
protected void |
waitAndClickButtonByExactText(String buttonText,
String message) |
protected void |
waitAndClickButtonByText(String buttonText) |
protected void |
waitAndClickButtonByText(String buttonText,
int waitSeconds) |
protected void |
waitAndClickButtonByText(String buttonText,
int waitSeconds,
String message) |
protected void |
waitAndClickButtonByText(String buttonText,
String message) |
protected void |
waitAndClickById(String id) |
protected void |
waitAndClickById(String id,
String message) |
protected void |
waitAndClickByLinkText(String text) |
protected void |
waitAndClickByLinkText(String text,
JiraAwareFailable failable) |
protected void |
waitAndClickByLinkText(String text,
String message) |
protected void |
waitAndClickByLinkText(String text,
String message,
JiraAwareFailable failable) |
protected void |
waitAndClickByName(String name) |
protected void |
waitAndClickByName(String name,
String message) |
protected void |
waitAndClickByValue(String value) |
protected void |
waitAndClickByXpath(String xpath) |
protected void |
waitAndClickByXpath(String xpath,
int waitSeconds,
String message) |
protected void |
waitAndClickByXpath(String xpath,
JiraAwareFailable failable) |
protected void |
waitAndClickByXpath(String xpath,
String message) |
protected void |
waitAndClickCancelSaveOnClose() |
protected void |
waitAndClickConfirmBlanketApproveOk() |
protected void |
waitAndClickConfirmCancelOk() |
protected void |
waitAndClickConfirmDeleteYes() |
protected void |
waitAndClickConfirmSaveOnClose() |
protected void |
waitAndClickConfirmSubmitOk() |
protected void |
waitAndClickDropDown(String dropDownText) |
protected void |
waitAndClickLabeledLink(String label,
String linkText) |
protected void |
waitAndClickLabeledQuickFinder(String label) |
protected void |
waitAndClickLightBoxClose() |
protected void |
waitAndClickLinkContainingText(String linkText) |
protected void |
waitAndClickLinkContainingText(String linkText,
String message) |
protected void |
waitAndClickReturnValue() |
protected void |
waitAndClickReturnValue(String message) |
protected void |
waitAndClickSearch3() |
protected String |
waitAndGetAttribute(org.openqa.selenium.By by,
String attribute) |
protected String |
waitAndGetAttributeByName(String name,
String attribute)
Get value of any attribute by using element name
|
protected String |
waitAndGetAttributeByXpath(String locator,
String attribute)
Get value of any attribute by using element xpath
|
protected org.openqa.selenium.WebElement |
waitAndGetElementByAttributeValue(String attribute,
String attributeValue) |
protected List<org.openqa.selenium.WebElement> |
waitAndGetElementsByAttributeValue(String attribute,
String attributeValue) |
protected List<org.openqa.selenium.WebElement> |
waitAndGetElementsFor(org.openqa.selenium.By by,
String message)
|
protected String |
waitAndGetLabeledText(String label) |
protected String[] |
waitAndGetText(org.openqa.selenium.By by) |
protected void |
waitAndSelectBy(org.openqa.selenium.By by,
String selectText) |
protected void |
waitAndSelectByName(String name,
String selectText) |
protected void |
waitAndSelectLabeled(String label,
String text) |
protected org.openqa.selenium.WebElement |
waitAndType(org.openqa.selenium.By by,
String text) |
protected org.openqa.selenium.WebElement |
waitAndType(String selector,
String text) |
protected org.openqa.selenium.WebElement |
waitAndTypeById(String id,
String text) |
protected org.openqa.selenium.WebElement |
waitAndTypeByName(String name,
String text) |
protected org.openqa.selenium.WebElement |
waitAndTypeByXpath(String locator,
String text) |
protected org.openqa.selenium.WebElement |
waitAndTypeByXpath(String locator,
String text,
String message) |
protected void |
waitAndTypeLabeledInput(String label,
String text) |
protected boolean |
waitAreAnyVisible(org.openqa.selenium.By[] bys) |
protected org.openqa.selenium.WebElement |
waitFor(org.openqa.selenium.By by) |
protected void |
waitFor(org.openqa.selenium.By by,
String message)
Should be called from jiraAwareWaitFor to get KULRICE error output in CI.
|
protected void |
waitForElementNotPresent(org.openqa.selenium.By by) |
protected void |
waitForElementNotPresent(org.openqa.selenium.By by,
int secondsToWait) |
protected void |
waitForElementNotPresent(org.openqa.selenium.By by,
String message) |
protected void |
waitForElementNotPresent(org.openqa.selenium.By by,
String message,
int secondsToWait) |
protected org.openqa.selenium.WebElement |
waitForElementPresent(org.openqa.selenium.By by) |
protected org.openqa.selenium.WebElement |
waitForElementPresent(org.openqa.selenium.By by,
String message) |
protected org.openqa.selenium.WebElement |
waitForElementPresent(String locator) |
protected org.openqa.selenium.WebElement |
waitForElementPresentByClassName(String name) |
protected org.openqa.selenium.WebElement |
waitForElementPresentByClassName(String name,
int seconds) |
protected org.openqa.selenium.WebElement |
waitForElementPresentByClassName(String name,
String message) |
protected org.openqa.selenium.WebElement |
waitForElementPresentById(String id) |
protected void |
waitForElementPresentById(String id,
String message) |
protected void |
waitForElementPresentById(String id,
String message,
int seconds) |
protected org.openqa.selenium.WebElement |
waitForElementPresentByName(String name) |
protected org.openqa.selenium.WebElement |
waitForElementPresentByName(String name,
String message) |
protected org.openqa.selenium.WebElement |
waitForElementPresentByXpath(String xpath) |
protected org.openqa.selenium.WebElement |
waitForElementPresentByXpath(String xpath,
String message) |
protected void |
waitForElementsPresentByClassName(String name,
String message) |
protected void |
waitForElementsPresentById(String id,
String message) |
protected void |
waitForElementsPresentByXpath(String xpathLocator) |
protected org.openqa.selenium.WebElement |
waitForElementVisible(String elementLocator,
String message)
Uses Selenium's findElements method which does not throw a test exception if not found.
|
protected org.openqa.selenium.WebElement |
waitForElementVisibleBy(org.openqa.selenium.By by) |
protected org.openqa.selenium.WebElement |
waitForElementVisibleBy(org.openqa.selenium.By by,
String message) |
protected void |
waitForElementVisibleById(String id,
String message) |
protected boolean |
waitForIsTextPresent(String text) |
protected String |
waitForLabeledText(String label) |
protected void |
waitForPageToLoad()
use any of the various wait methods over this, waitForElementPresent for example.
|
protected void |
waitForProgress(String altText) |
protected void |
waitForProgress(String altText,
int timeout) |
protected void |
waitForProgressAddingLine() |
protected void |
waitForProgressAddingLine(int secondsToWait) |
protected void |
waitForProgressDeletingLine() |
protected void |
waitForProgressLoading() |
protected void |
waitForProgressLoading(int secondsToWait) |
protected void |
waitForProgressSaving() |
protected void |
waitForProgressSaving(int secondsToWait) |
protected void |
waitForTextNotPresent(String text) |
protected void |
waitForTextPresent(String text) |
protected void |
waitForTextPresent(String text,
int secondsToWait) |
protected void |
waitForTextPresent(String text,
int secondsToWait,
String message) |
protected void |
waitForTextPresent(String text,
String message) |
protected void |
waitIsVisible(org.openqa.selenium.By by) |
protected void |
waitIsVisible(org.openqa.selenium.By by,
String message) |
protected void |
waitIsVisible(String locator) |
protected void |
waitIsVisibleByXpath(String locator) |
protected void |
waitIsVisibleByXpath(String locator,
String message) |
protected void |
waitNotVisible(org.openqa.selenium.By by) |
protected void |
waitNotVisible(org.openqa.selenium.By by,
String message) |
protected void |
waitNotVisibleByXpath(String locator) |
protected void |
waitNotVisibleByXpath(String locator,
String message) |
assertButtonDisabledByText, assertButtonEnabledByText, assertDataTableContains, assertDataTableContains, assertElementPresent, assertElementPresent, assertElementPresent, assertElementPresentByLinkText, assertElementPresentByName, assertElementPresentByName, assertElementPresentByXpath, assertElementPresentByXpath, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertIsNotVisible, assertIsNotVisible, assertIsNotVisible, assertIsNotVisibleByXpath, assertIsNotVisibleByXpath, assertIsVisible, assertIsVisible, assertIsVisibleById, assertIsVisibleByXpath, assertLabeledInputTextPresent, assertLabeledTextNotPresent, assertLabeledTextPresent, assertLabeledTextPresent, assertResultCount, assertTextNotPresent, assertTextNotPresent, assertTextNotPresent, assertTextPresent, assertTextPresent, assertTextPresent, assertTrue, assertTrue, fail, findDataTableRow, findDataTableRow, findElement, findElement, isLabeledInputTextPresent, isLabeledTextPresent, isPassed, isVisible, isVisible, isVisibleById, isVisibleByXpath, jiraAwareClearAndType, jiraAwareClearAndTypeByName, jiraAwareClearAndTypeByName, jiraAwareClearType, jiraAwareFail, jiraAwareFail, jiraAwareFail, jiraAwareFail, jiraAwareFail, jiraAwareFail, jiraAwareType, jiraAwareType, jiraAwareTypeByName, jiraAwareTypeByName, jiraAwareWaitAndClick, jiraAwareWaitAndClick, jiraAwareWaitAndClick, jiraAwareWaitFor, jiraAwareWaitFor, jiraAwareWaitFor, jiraAwareWaitFor, jiraAwareWaitFor, jiraAwareWaitFors, passed, selectOption, selectOptionByName, selectOptionByXpath, selectOptionText, waitAndType
enableBookmarkMode, enableNavigationMode, getBookmarkUrl, getTestUrl, navigateInternal
protected static org.openqa.selenium.chrome.ChromeDriverService chromeDriverService
public static final String DATA_TABLE_TH_CSS
protected org.openqa.selenium.WebDriver driver
protected String jGrowlHeader
public static final String LOOKUP_CRITERIA_NUMBER_NAME
public static final String REGEX_ERROR
public static final String REGEX_VALID
public static final String RETURN_SELECTED_BUTTON_TEXT
public static final String RETURN_VALUE_LINK_TEXT
public static final String SEARCH_XPATH_3
public static final String SHOW_INACTIVE
public static final String SUB_COLLECTION_UIF_DISCLOSURE_SPAN_UIF_HEADER_TEXT_SPAN_XPATH
protected String testMethodName
public org.junit.rules.TestName testName
public static final String TIMEOUT_MESSAGE
protected String uniqueString
protected int waitSeconds
protected WebDriverScreenshotHelper webDriverScreenshotHelper
public WebDriverAftBase()
protected void acceptAlertIfPresent()
protected void alertAccept()
protected void alertDismiss()
public static void afterClass()
protected boolean areAllMultiValueSelectsChecked() throws InterruptedException
InterruptedException
protected boolean areNoMultiValueSelectsChecked() throws InterruptedException
InterruptedException
protected void assertAttributeClassRegexDoesntMatch(String field, String regex) throws InterruptedException
InterruptedException
protected void assertAttributeClassRegexMatches(String field, String regex) throws InterruptedException
InterruptedException
protected void assertElementPresentInResultPages(org.openqa.selenium.By searchBy) throws Exception
Exception
protected void assertElementsPresentInResultPages(org.openqa.selenium.By[] searchBys) throws Exception
Exception
protected void assertTextPresentInResultPages(String[][] texts) throws Exception
Exception
protected void assertEmptyInputByName(String name) throws InterruptedException
InterruptedException
protected void assertFocusTypeBlurError(String field, String textToType) throws InterruptedException
InterruptedException
protected void assertFocusTypeBlurError(String field, String[] errorInputs) throws InterruptedException
InterruptedException
protected void assertFocusTypeBlurValid(String field, String textToType) throws InterruptedException
InterruptedException
protected void assertFocusTypeBlurValid(String field, String[] validInputs) throws InterruptedException
InterruptedException
protected void assertFocusTypeBlurValidation(String field, String[] errorInputs, String[] validInputs) throws InterruptedException
InterruptedException
protected void assertFocusTypeTabError(String field, String textToType) throws InterruptedException
InterruptedException
protected void assertJgrowlText(String jGrowlText) throws InterruptedException
InterruptedException
protected void assertLabelWithTextPresent(String labelText) throws InterruptedException
InterruptedException
protected void assertLabelFor(String forElementId, String labelText)
protected void assertMultiValueDeselectAllThisPage() throws InterruptedException
InterruptedException
protected void assertMultiValueSelectAllThisPage() throws InterruptedException
InterruptedException
protected void assertTextPresent(String[] text) throws InterruptedException
InterruptedException
protected void assertTextPresent(String message, String[] text) throws InterruptedException
InterruptedException
protected void assertTextPresent(String[][] text) throws InterruptedException
InterruptedException
protected void assertPopUpWindowUrl(org.openqa.selenium.By by, String windowName, String url)
by
- The locating mechanism of the element to be clickedwindowName
- The name of the popup windowurl
- The URL of the popup windowprotected void back()
protected void check(org.openqa.selenium.By by) throws InterruptedException
InterruptedException
protected void checkById(String id) throws InterruptedException
InterruptedException
protected void checkByName(String name) throws InterruptedException
InterruptedException
protected void checkByXpath(String locator) throws InterruptedException
InterruptedException
protected void checkForIncidentReport()
protected String incidentReportMessage()
protected void checkForIncidentReport(String locator)
protected void checkForIncidentReport(String locator, String message)
JiraAwareAftBase
JiraAwareFailable.fail(java.lang.String)
to fail,
without calling any of the jiraAwareFail methods to avoid an infinite loop.checkForIncidentReport
in class JiraAwareAftBase
locator
- used in failure message if there is an incident report can be blankmessage
- used in failure message if there is an incident report can be blankprotected void checkForIncidentReport(String locator, JiraAwareFailable failable, String message)
checkForIncidentReport(String, String)
protected void clearText(org.openqa.selenium.By by) throws InterruptedException
InterruptedException
protected void clearText(String selector) throws InterruptedException
InterruptedException
protected void clearTextByName(String name) throws InterruptedException
InterruptedException
protected void clearTextByXpath(String locator) throws InterruptedException
InterruptedException
protected void close()
protected void closeAllOtherWindows(String handleToKeep)
protected void colapseExpandByXpath(String clickLocator, String visibleLocator) throws InterruptedException
InterruptedException
public static void chromeDriverService() throws Exception
WebDriverUtils.chromeDriverCreateCheck()
Exception
protected void closeAndQuitWebDriver()
protected void determineImplicitWait()
protected void determineJgrowlHeader()
protected String determinePage()
protected void determineTestMethodName()
public void setTestMethodName(String testMethodName)
protected void determineUser()
protected String getDescriptionBase()
protected String getDescriptionUnique()
protected org.openqa.selenium.WebElement findButtonByText(String buttonText)
protected List<org.openqa.selenium.WebElement> findVisibleElements(org.openqa.selenium.By by)
protected List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
protected List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by, org.openqa.selenium.WebElement element)
public void fireMouseOverEventByName(String name)
Actions.moveToElement(org.openqa.selenium.WebElement)
name
- public void fireMouseOverEventById(String id)
Actions.moveToElement(org.openqa.selenium.WebElement)
id
- public void fireMouseOverEventByXpath(String locator)
Actions.moveToElement(org.openqa.selenium.WebElement)
locator
- public void fireMouseOverEvent(org.openqa.selenium.By by)
Actions.moveToElement(org.openqa.selenium.WebElement)
by
- public String[] getAllWindowTitles()
WebDriver.getWindowHandles()
protected String getBaseUrlString()
protected int getCssCount(String selector)
protected int getCssCount(org.openqa.selenium.By by)
by
- protected String getDateTimeStampFormatted()
protected String getDateToday()
protected String getDateTomorrow()
protected org.openqa.selenium.WebDriver getDriver()
getDriver
in class JiraAwareAftBase
public void setDriver(org.openqa.selenium.WebDriver driver)
protected org.openqa.selenium.WebElement getElementByAttribute(String attributeName)
protected org.openqa.selenium.WebElement getElementByDataAttribute(String dataAttributeName)
protected org.openqa.selenium.WebElement getElementByDataAttributeValue(String dataAttributeName, String value)
protected org.openqa.selenium.WebElement getElementByAttributeValue(String attributeName, String value)
protected List<org.openqa.selenium.WebElement> getElementsByAttributeValue(String attributeName, String value)
protected String getNavigationUrl()
AutomatedFunctionalTestBase
getNavigationUrl
in class AutomatedFunctionalTestBase
protected String[] getSelectOptions(org.openqa.selenium.By by) throws InterruptedException
by
- InterruptedException
protected String[] getSelectOptionsByName(String name) throws InterruptedException
InterruptedException
protected String[] getSelectOptionsByXpath(String locator) throws InterruptedException
InterruptedException
public String getSessionId()
protected String getText(org.openqa.selenium.By by) throws InterruptedException
InterruptedException
protected String getTextByClassName(String className) throws InterruptedException
InterruptedException
protected String getTextById(String id) throws InterruptedException
InterruptedException
protected String getTextByName(String name) throws InterruptedException
InterruptedException
protected String getText(String locator) throws InterruptedException
InterruptedException
protected String getTextByXpath(String locator) throws InterruptedException
InterruptedException
public String getUserName()
WebDriverUtils.REMOTE_PUBLIC_USER_PROPERTY
protected String getForLabelText(String forElementId)
For usage with elements like this:
forElementId
- the id of the element for which to find the label textprotected void gotoIframeById(String iframeId)
protected org.openqa.selenium.WebElement gotoIframeByXpath(String iframeXpath)
protected void gotoLightBox() throws InterruptedException
InterruptedException
protected org.openqa.selenium.WebElement gotoLightBoxIframe()
protected int howManyAreVisible(org.openqa.selenium.By by) throws InterruptedException
InterruptedException
protected boolean isNextLinkEnabled()
protected boolean isChecked(org.openqa.selenium.By by)
protected boolean isCheckedById(String id)
protected boolean isCheckedByName(String name)
protected boolean isCheckedByXpath(String locator)
protected boolean isEnabled(org.openqa.selenium.By by)
protected boolean isEnabledById(String id)
protected boolean isEnabledByName(String name)
protected boolean isEnabledByXpath(String locator)
protected boolean isVisible(org.openqa.selenium.By[] bys)
protected boolean isElementPresent(org.openqa.selenium.By by)
by
- protected boolean isElementPresent(String locator)
locator
- protected boolean isElementPresentById(String id)
protected boolean isElementPresentByName(String name)
protected boolean isElementPresentByXpath(String locator)
protected boolean isElementPresentByLinkText(String locator)
protected boolean isElementPresentByDataAttributeValue(String dataAttributeName, String dataAttributeValue)
protected boolean isNotVisible(org.openqa.selenium.By by)
protected Boolean isTextPresent(String text)
protected Boolean isTextPresent(String[] texts)
protected void javascriptErrorsReport()
protected void jGrowlSticky(String message)
public void login(org.openqa.selenium.WebDriver driver, String userName, JiraAwareFailable failable) throws InterruptedException
Logs in using the KRAD Login Page, if the JVM arg remote.autologin is set, auto login as admin will not be done.
driver
- to login withuserName
- to login withfailable
- to fail on if there is a login problemInterruptedException
protected void logout() throws InterruptedException
InterruptedException
protected String multiValueResultCount() throws InterruptedException
InterruptedException
protected void navigate() throws Exception
AutomatedFunctionalTestBase
AutomatedFunctionalTestBase.navigateInternal()
, should navigate from the testUrl.navigate
in class AutomatedFunctionalTestBase
Exception
protected void screenshot()
protected void startSession(Method method) throws Exception
Exception
protected void select(org.openqa.selenium.By by, String selectText) throws InterruptedException
by
- selectText
- InterruptedException
protected void selectByXpath(String locator, String selectText) throws InterruptedException
InterruptedException
protected void selectByName(String name, String selectText) throws InterruptedException
InterruptedException
protected void selectChildWindow()
protected void selectParentWindow()
protected void selectTopFrame()
protected void selectWindow(String locator)
public void switchToWindow(String title)
title
- public void tearDown()
WebDriverUtils#tearDown(boolean, String, String, String)
WebDriverUtils.REMOTE_PUBLIC_USERPOOL_PROPERTY
WebDriverUtils.dontTearDownPropertyNotSet()
Exception
public void testSetUp()
WebDriverUtils.determineUser(String)
WebDriverUtils#setUp(String, String, String, String)
public void setUpSetUp()
protected void uncheck(org.openqa.selenium.By by) throws InterruptedException
InterruptedException
protected void uncheckByName(String name) throws InterruptedException
InterruptedException
protected void uncheckByXpath(String locator) throws InterruptedException
InterruptedException
protected void waitAndClick(String locator) throws InterruptedException
InterruptedException
protected void waitAndClick(org.openqa.selenium.By by) throws InterruptedException
InterruptedException
protected void waitAndClick(org.openqa.selenium.By by, JiraAwareFailable failable) throws InterruptedException
InterruptedException
protected void waitAndClick(String locator, String message) throws InterruptedException
InterruptedException
protected void waitAndClickById(String id) throws InterruptedException
InterruptedException
protected void waitAndClickById(String id, String message) throws InterruptedException
InterruptedException
protected void waitAndClickByLinkText(String text) throws InterruptedException
InterruptedException
protected void waitAndClickByLinkText(String text, String message) throws InterruptedException
InterruptedException
protected void waitAndClickByLinkText(String text, JiraAwareFailable failable) throws InterruptedException
InterruptedException
protected void waitAndClickByLinkText(String text, String message, JiraAwareFailable failable) throws InterruptedException
InterruptedException
protected void waitAndClickLabeledLink(String label, String linkText) throws InterruptedException
InterruptedException
protected void waitAndClickLabeledQuickFinder(String label) throws InterruptedException
InterruptedException
protected void waitAndTypeLabeledInput(String label, String text) throws InterruptedException
InterruptedException
protected void waitAndSelectLabeled(String label, String text) throws InterruptedException
InterruptedException
protected void waitAndClickLightBoxClose() throws InterruptedException
InterruptedException
protected void waitAndClickLinkContainingText(String linkText) throws InterruptedException
InterruptedException
protected void waitAndClickLinkContainingText(String linkText, String message) throws InterruptedException
InterruptedException
protected void waitAndClickByName(String name) throws InterruptedException
InterruptedException
protected void waitAndClickByValue(String value) throws InterruptedException
InterruptedException
protected void waitAndClickByXpath(String xpath) throws InterruptedException
InterruptedException
protected void waitAndClickByXpath(String xpath, JiraAwareFailable failable) throws InterruptedException
InterruptedException
protected void waitAndClickByName(String name, String message) throws InterruptedException
InterruptedException
protected void waitAndClickByXpath(String xpath, String message) throws InterruptedException
InterruptedException
protected void waitAndClickByXpath(String xpath, int waitSeconds, String message) throws InterruptedException
InterruptedException
protected void waitAndClickButtonByText(String buttonText) throws InterruptedException
InterruptedException
protected void waitAndClickButtonByText(String buttonText, int waitSeconds) throws InterruptedException
InterruptedException
protected void waitAndClickButtonByText(String buttonText, String message) throws InterruptedException
InterruptedException
protected void waitAndClickButtonByText(String buttonText, int waitSeconds, String message) throws InterruptedException
InterruptedException
protected void waitAndClickButtonByExactText(String buttonText) throws InterruptedException
InterruptedException
protected void waitAndClickButtonByExactText(String buttonText, String message) throws InterruptedException
InterruptedException
protected void waitAndClickAllByName(String name) throws InterruptedException
InterruptedException
protected void waitAndClickConfirmCancelOk() throws InterruptedException
InterruptedException
protected void waitAndClickConfirmBlanketApproveOk() throws InterruptedException
InterruptedException
protected void waitAndClickConfirmDeleteYes() throws InterruptedException
InterruptedException
protected void waitAndClickConfirmSaveOnClose() throws InterruptedException
InterruptedException
protected void waitAndClickCancelSaveOnClose() throws InterruptedException
InterruptedException
protected void waitAndClickConfirmSubmitOk() throws InterruptedException
InterruptedException
protected void waitAndClickDropDown(String dropDownText) throws InterruptedException
InterruptedException
protected void waitAndClickReturnValue() throws InterruptedException
InterruptedException
protected void waitAndClickReturnValue(String message) throws InterruptedException
InterruptedException
protected void waitAndClickSearch3() throws InterruptedException
InterruptedException
protected String waitAndGetAttribute(org.openqa.selenium.By by, String attribute) throws InterruptedException
InterruptedException
protected String waitAndGetAttributeByName(String name, String attribute) throws InterruptedException
name
- name of an elementattribute
- the name of an attribute whose value is to be retrievedInterruptedException
protected String waitAndGetAttributeByXpath(String locator, String attribute) throws InterruptedException
locator
- locating mechanism of an elementattribute
- the name of an attribute whose value is to be retrievedInterruptedException
protected org.openqa.selenium.WebElement waitAndGetElementByAttributeValue(String attribute, String attributeValue) throws InterruptedException
InterruptedException
protected List<org.openqa.selenium.WebElement> waitAndGetElementsByAttributeValue(String attribute, String attributeValue) throws InterruptedException
InterruptedException
protected String waitAndGetLabeledText(String label) throws InterruptedException
InterruptedException
protected String[] waitAndGetText(org.openqa.selenium.By by) throws InterruptedException
InterruptedException
protected void waitAndSelectBy(org.openqa.selenium.By by, String selectText) throws InterruptedException
InterruptedException
protected void waitAndSelectByName(String name, String selectText) throws InterruptedException
InterruptedException
protected org.openqa.selenium.WebElement waitAndType(org.openqa.selenium.By by, String text) throws InterruptedException
InterruptedException
protected org.openqa.selenium.WebElement waitAndType(String selector, String text) throws InterruptedException
InterruptedException
protected org.openqa.selenium.WebElement waitAndTypeById(String id, String text) throws InterruptedException
InterruptedException
protected org.openqa.selenium.WebElement waitAndTypeByXpath(String locator, String text) throws InterruptedException
InterruptedException
protected org.openqa.selenium.WebElement waitAndTypeByXpath(String locator, String text, String message) throws InterruptedException
InterruptedException
protected org.openqa.selenium.WebElement waitAndTypeByName(String name, String text) throws InterruptedException
InterruptedException
protected boolean waitAreAnyVisible(org.openqa.selenium.By[] bys) throws InterruptedException
InterruptedException
protected void waitForPageToLoad() throws InterruptedException
InterruptedException
protected org.openqa.selenium.WebElement waitFor(org.openqa.selenium.By by) throws InterruptedException
InterruptedException
protected void waitFor(org.openqa.selenium.By by, String message) throws InterruptedException
by
- message
- InterruptedException
protected org.openqa.selenium.WebElement waitForElementVisible(String elementLocator, String message) throws InterruptedException
elementLocator
- message
- InterruptedException
protected org.openqa.selenium.WebElement waitForElementVisibleBy(org.openqa.selenium.By by) throws InterruptedException
InterruptedException
protected org.openqa.selenium.WebElement waitForElementVisibleBy(org.openqa.selenium.By by, String message) throws InterruptedException
InterruptedException
protected void waitForElementVisibleById(String id, String message) throws InterruptedException
InterruptedException
protected org.openqa.selenium.WebElement waitForElementPresent(org.openqa.selenium.By by) throws InterruptedException
InterruptedException
protected org.openqa.selenium.WebElement waitForElementPresent(org.openqa.selenium.By by, String message) throws InterruptedException
InterruptedException
protected org.openqa.selenium.WebElement waitForElementPresent(String locator) throws InterruptedException
InterruptedException
protected org.openqa.selenium.WebElement waitForElementPresentByClassName(String name) throws InterruptedException
InterruptedException
protected org.openqa.selenium.WebElement waitForElementPresentByClassName(String name, String message) throws InterruptedException
InterruptedException
protected org.openqa.selenium.WebElement waitForElementPresentByClassName(String name, int seconds) throws InterruptedException
InterruptedException
protected void waitForElementsPresentByClassName(String name, String message) throws InterruptedException
InterruptedException
protected String waitForLabeledText(String label) throws InterruptedException
InterruptedException
protected List<org.openqa.selenium.WebElement> waitAndGetElementsFor(org.openqa.selenium.By by, String message) throws InterruptedException
WebDriverUtils.waitFor(org.openqa.selenium.WebDriver, int, org.openqa.selenium.By, java.lang.String)
.by
- to findmessage
- on failureInterruptedException
protected org.openqa.selenium.WebElement waitForElementPresentById(String id) throws InterruptedException
InterruptedException
protected void waitForElementPresentById(String id, String message) throws InterruptedException
InterruptedException
protected void waitForElementPresentById(String id, String message, int seconds) throws InterruptedException
InterruptedException
protected void waitForElementsPresentById(String id, String message) throws InterruptedException
InterruptedException
protected org.openqa.selenium.WebElement waitForElementPresentByName(String name) throws InterruptedException
InterruptedException
protected org.openqa.selenium.WebElement waitForElementPresentByName(String name, String message) throws InterruptedException
InterruptedException
protected org.openqa.selenium.WebElement waitForElementPresentByXpath(String xpath) throws InterruptedException
InterruptedException
protected org.openqa.selenium.WebElement waitForElementPresentByXpath(String xpath, String message) throws InterruptedException
InterruptedException
protected void waitForElementsPresentByXpath(String xpathLocator) throws InterruptedException
InterruptedException
protected void waitForElementNotPresent(org.openqa.selenium.By by) throws InterruptedException
InterruptedException
protected void waitForElementNotPresent(org.openqa.selenium.By by, int secondsToWait) throws InterruptedException
InterruptedException
protected void waitForElementNotPresent(org.openqa.selenium.By by, String message) throws InterruptedException
InterruptedException
protected void waitForElementNotPresent(org.openqa.selenium.By by, String message, int secondsToWait) throws InterruptedException
InterruptedException
protected boolean waitForIsTextPresent(String text) throws InterruptedException
InterruptedException
protected void waitForProgress(String altText) throws InterruptedException
InterruptedException
protected void waitForProgress(String altText, int timeout) throws InterruptedException
InterruptedException
protected void waitForProgressAddingLine() throws InterruptedException
InterruptedException
protected void waitForProgressDeletingLine() throws InterruptedException
InterruptedException
protected void waitForProgressAddingLine(int secondsToWait) throws InterruptedException
InterruptedException
protected void waitForProgressLoading() throws InterruptedException
InterruptedException
protected void waitForProgressLoading(int secondsToWait) throws InterruptedException
InterruptedException
protected void waitForProgressSaving() throws InterruptedException
InterruptedException
protected void waitForProgressSaving(int secondsToWait) throws InterruptedException
InterruptedException
protected void waitForTextPresent(String text) throws InterruptedException
InterruptedException
protected void waitForTextPresent(String text, String message) throws InterruptedException
InterruptedException
protected void waitForTextPresent(String text, int secondsToWait) throws InterruptedException
InterruptedException
protected void waitForTextPresent(String text, int secondsToWait, String message) throws InterruptedException
InterruptedException
protected void waitForTextNotPresent(String text) throws InterruptedException
InterruptedException
protected void waitIsVisible(org.openqa.selenium.By by) throws InterruptedException
InterruptedException
protected void waitIsVisible(org.openqa.selenium.By by, String message) throws InterruptedException
InterruptedException
protected void waitIsVisible(String locator) throws InterruptedException
InterruptedException
protected void waitIsVisibleByXpath(String locator) throws InterruptedException
InterruptedException
protected void waitIsVisibleByXpath(String locator, String message) throws InterruptedException
InterruptedException
protected void waitNotVisible(org.openqa.selenium.By by) throws InterruptedException
InterruptedException
protected void waitNotVisible(org.openqa.selenium.By by, String message) throws InterruptedException
InterruptedException
protected void waitNotVisibleByXpath(String locator) throws InterruptedException
InterruptedException
protected void waitNotVisibleByXpath(String locator, String message) throws InterruptedException
InterruptedException
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.