edu.samplu.common
Class WebDriverLegacyITBase

java.lang.Object
  extended by edu.samplu.common.WebDriverLegacyITBase
All Implemented Interfaces:
Failable
Direct Known Subclasses:
BreadcrumbSmokeTestBase, ClientErrorsAbstractSmokeTestBase, ConfigurationTestViewAbstractSmokeTestBase, DeleteSubCollectionLineAbstractSmokeTestBase, DemoTravelAccountLookUpAutoSearchAbstractSmokeTestBase, DirtyFieldsAbstractSmokeTestBase, DocSearchToAnotherViewWDIT, DocSearchWDIT, FiscalOfficerInfoMaintenanceAbstractSmokeTestBase, FreemarkerSTBase, Help2AbstractSmokeTestBase, HelpAbstractSmokeTestBase, IdentityPersonRole, InquiryAbstractSmokeTestBase, ParentLineAbstractSmokeTestBase, RichMessagesAbstractSmokeTestBase, ServerErrorsAbstractSmokeTestBase, ServerInfoAbstractSmokeTestBase, ServerWarningsAbstractSmokeTestBase, SmokeTestBase, TravelAccountLookupAbstractSmokeTestBase, TravelAccountTypeLookupAbstractSmokeTestBase, UIFComponentValidationRegexPatternAbstractSmokeTestBase, UifDataAttributesNavIT, UifTooltipAbstractSmokeTestBase, ValidCharsConstraintAbstractSmokeTestBase

public abstract class WebDriverLegacyITBase
extends Object
implements Failable

Originally used to upgrade UpgradedSeleniumITBase (Selenium 1.0) tests to WebDriver (Selenium 2.0). Now there is refactoring to be done:

  1. KULRICE-9206 Replace literal strings used more than 3 times with Constants, Javadoc constant with constant value.
  2. Extract duplicate waitAndClick...(CONSTANT) to waitAndClickConstant, Javadoc a
    #CONSTANT
    .
  3. Replace large chunks of duplication
  4. KULRICE-9205 Invert dependencies on fields and extract methods to WebDriverUtil so inheritance doesn't have to be used for reuse. See WebDriverUtil.waitFor
  5. Extract Nav specific code?
  6. Rename to WebDriverAbstractSmokeTestBase

Calls to passed() probably don't belong in the methods reused here.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
static String ADMINISTRATION_LINK_TEXT
          Administration
static String AGENDA_LOOKUP_LINK_TEXT
          Agenda Lookup
static String ARIA_INVALID_XPATH
          "//input[@aria-invalid]"
static String BLANKET_APPROVE_NAME
          methodToCall.blanketApprove
static String CANCEL_NAME
          methodToCall.cancel different cancel than CANCEL2_XPATH
static String CANCEL2_XPATH
          //a[contains(text(), 'ancel')] Different cancel than CANCEL_NAME
static String CLOSE_WINDOW_XPATH_TITLE
          //*[@title='close this window']
static String COLLECTIONS_LINK_TEXT
          Collections
static String CONFIGURATION_VIEW_WINDOW_TITLE
          "Kuali :: Configuration Test View"
static String CONFIGURATION_VIEW_XPATH
          (//a[contains(text(),'Configuration Test View')])[3]
static String COPY_LINK_TEXT
          copy
static String CREATE_NEW_DOCUMENT_NOT_SUBMITTED_SUCCESSFULLY_MESSAGE_TEXT
          New Document not submitted successfully
static String CREATE_NEW_XPATH
          //img[@alt='create new']
static int DEFAULT_WAIT_SEC
          Default "long" wait period is 30 seconds.
static String DIV_LEFT_ERRMSG
          //div[@class='left-errmsg-tab']/div/div
static String DOC_CODE_XPATH
          //input[@id='document.newMaintainableObject.code']
static String DOC_DESCRIPTION_XPATH
          //input[@id='document.documentHeader.documentDescription']
static String DOC_ID_XPATH
          //div[@id='headerarea']/div/table/tbody/tr[1]/td[1]
static String DOC_ID_XPATH_2
          //table[@id='row']/tbody/tr[1]/td[1
static String DOC_ID_XPATH_3
          //table[@id='row']/tbody/tr[1]/td[1]/a
static String DOC_SEARCH_XPATH
          "//img[@alt='doc search']
static String DOC_SEARCH_XPATH_TITLE
          //a[@title='Document Search']
static String DOC_STATUS_ENROUTE
          ENROUTE
static String DOC_STATUS_FINAL
          FINAL
static String DOC_STATUS_SAVED
          SAVED
static String DOC_STATUS_XPATH
          //table[@class='headerinfo']//tr[1]/td[2]
static String DOC_STATUS_XPATH_2
          //table[@id='row']/tbody/tr[1]/td[4]
static String DOC_SUBMIT_SUCCESS_MSG_XPATH
          //div[contains(div,'Document was successfully submitted.')]
static String DONT_TEAR_DOWN_ON_FAILURE_PROPERTY
          Set -Dremote.driver.dontTearDownOnFailure=
protected  org.openqa.selenium.WebDriver driver
           
static String EDIT_LINK_TEXT
          edit
static String FISCAL_OFFICER_INFO_MAINTENANCE_NEW_XPATH
          //a[@title='FiscalOfficerInfo Maintenance (New)']
static String IFRAMEPORTLET_NAME
          iframeportlet
protected  String jGrowlHeader
           
static String KITCHEN_SINK_XPATH
          (//a[contains(text(),'Uif Components (Kitchen Sink)')])[2]
static String KRAD_XPATH
          KRAD
static String KUALI_COLLECTION_TOTALLING_WINDOW_XPATH
          Kuali :: Collection Totaling
static String KUALI_COLLECTION_TOTALLING_XPATH
          //a[text()='Collection Totaling']
static String KUALI_UIF_COMPONENTS_WINDOW_XPATH
          Kuali :: Uif Components
static String KUALI_VIEW_WINDOW_TITLE
          "Kuali :: View Title"
static String LOGOUT_XPATH
          //input[@name='imageField' and @value='Logout']
static String MAIN_MENU_LINK_TEXT
          Main Menu
protected  boolean passed
           
static String REGEX_ERROR
          ^[\s\S]*error[\s\S]*$"
static String REGEX_VALID
          ^[\s\S]*valid[\s\S]*$
static String REMOTE_PUBLIC_USER_PROPERTY
          Set -Dremote.public.user= to the username to login as
static String REMOTE_PUBLIC_USERPOOL_PROPERTY
          You probably don't want to really be using a userpool, set -Dremote.public.userpool= to base url if you must.
static String REMOTE_PUBLIC_WAIT_SECONDS_PROPERTY
          Set -Dremote.public.wait.seconds to override DEFAULT_WAIT_SEC
static String RETURN_VALUE_LINK_TEXT
          return value
static String RICH_MESSAGES_WINDOW_TITLE
          Kuali :: Rich Messages
static String SAVE_SUCCESSFUL_XPATH
          //div[contains(div,'Document was successfully saved.')]
static String SAVE_XPATH
          //input[@name='methodToCall.save' and @alt='save']
static String SAVE_XPATH_2
          KIM Screens //*[@name='methodToCall.save' and @alt='save']
static String SAVE_XPATH_3
          //input[@title='search' and @name='methodToCall.search']
static String SEARCH_XPATH
          //input[@name='methodToCall.search' and @value='search']
static String SEARCH_XPATH_2
          //input[@value='search']
static String SEARCH_XPATH_3
          //button[contains(text(),'Search')]
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
static String SUBMIT_XPATH
          //input[@name='methodToCall.route' and @alt='submit']
protected  String testMethodName
           
 org.junit.rules.TestName testName
           
static String TIMEOUT_MESSAGE
          timeout
static String TRAVEL_ACCOUNT_LOOKUP_LINK_TEXT
          Travel Account Lookup
static String UIF_COMPONENTS_KITCHEN_SINK_LINK_TEXT
          Uif Components (Kitchen Sink)
protected  String uiFramework
           
protected  String user
           
static String VALIDATION_FRAMEWORK_DEMO_XPATH
          (//a[contains(text(),'Validation Framework Demo')])[2]
protected  int waitSeconds
           
static String XML_INGESTER_LINK_TEXT
          XML Ingester
 
Constructor Summary
WebDriverLegacyITBase()
           
 
Method Summary
protected  void agendaLookupAssertions()
           
protected  void alertAccept()
          Accept the javascript alert (clicking OK)
protected  void alertDismiss()
          Dismiss the javascript alert (clicking Cancel)
protected  void assertAttributeClassRegexDoesntMatch(String field, String regex)
           
protected  void assertAttributeClassRegexMatches(String field, String regex)
           
protected  void assertBlanketApproveButtonsPresent()
           
protected  void assertButtonDisabledByText(String buttonText)
           
protected  void assertButtonEnabledByText(String buttonText)
           
protected  void assertCancelConfirmation()
           
protected  void assertDocFinal(String docId)
           
protected  void assertDocumentStatusSaved()
           
protected  void assertElementPresent(String locator)
           
protected  void assertElementPresentByLinkText(String linkText)
           
protected  void assertElementPresentByName(String name)
           
protected  void assertElementPresentByName(String name, String message)
           
protected  void assertElementPresentByXpath(String locator)
           
protected  void assertElementPresentByXpath(String locator, String message)
           
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 assertIsNotVisible(String locator)
           
protected  void assertIsNotVisibleByXpath(String xpath)
           
protected  void assertIsNotVisibleByXpath(String xpath, String message)
           
protected  void assertIsVisible(String locator)
           
protected  void assertIsVisibleById(String id)
           
protected  void assertIsVisibleByXpath(String xpath, String message)
           
protected  void assertLabelFor(String forElementId, String labelText)
           
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 assertTableLayout()
           
protected  void assertTextNotPresent(String text)
          Asset that the given text does not occur in the page Warning, this only does a check against the page source.
protected  void assertTextNotPresent(String text, String message)
          Assert that the given text does not occur in the page, and add an additional message to the failure
protected  void assertTextPresent(String text)
          Warning, this only does a check against the page source.
protected  void assertTextPresent(String text, String message)
          Warning, this only does a check against the page source.
protected  void assertTextPresent(String text, String cssSelector, String message)
          Warning, this only does a check against the page source.
protected  void back()
           
protected  void blanketApproveCheck()
           
protected  void blanketApproveTest()
          Tests blanket approve action.
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 checkErrorMessageItem(String message)
           
 void checkForDocError()
          Uses Selenium's findElements method which does not throw a test exception if not found.
protected  void checkForIncidentReport()
           
protected  void checkForIncidentReport(String locator)
           
protected  void checkForIncidentReport(String locator, Failable failable, String message)
           
protected  void checkForIncidentReport(String locator, String message)
           
static void chromeDriverService()
          If WebDriverUtil.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 colapseExpandByXpath(String clickLocator, String visibleLocator)
           
protected  String configNameSpaceBlanketApprove()
           
protected  void confirmAddLineControlsPresent(String idPrefix, String addLineIdSuffix)
          verify that add line controls are present
protected  void contextLookupAssertions()
           
protected  void expandColapseByXpath(String clickLocator, String visibleLocator)
           
protected  String extractErrorText()
           
 void failableFail(String message)
          Fail using the Failable fail method.
protected  org.openqa.selenium.WebElement findButtonByText(String buttonText)
           
protected  org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
           
protected  org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by, org.openqa.selenium.WebElement elementToFindOn)
           
protected  List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
           
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 getDocStatus()
           
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  String getForLabelText(String forElementId)
          Returns the label text of a label-for element
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()
           
abstract  String getTestUrl()
          Navigation tests should return ITUtil.PORTAL.
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 getUiFramework()
          Determines whether KRAD or KNS UIF is used for this test.
 String getUserName()
          "admin" by default.
protected  void gotoNestedFrame()
          Handles simple nested frame content; validates that a frame and nested frame exists before switching to it Uses Selenium's findElements method which does not throw a test exception if not found.
 boolean hasDocError()
          Uses Selenium's findElements method which does not throw a test exception if not found.
 boolean hasDocError(String errorTextToMatch)
          Uses Selenium's findElements method which does not throw a test exception if not found.
protected  int howManyAreVisible(org.openqa.selenium.By by)
           
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 isKrad()
          Does the test page use KRAD UIF? Useful if trying to re-use a test for both a KNS and KRAD screens that have different paths to the elements.
protected  boolean isNotVisible(org.openqa.selenium.By by)
           
protected  Boolean isTextPresent(String text)
           
protected  boolean isVisible(org.openqa.selenium.By by)
           
protected  boolean isVisible(org.openqa.selenium.By[] bys)
           
protected  boolean isVisible(String locator)
           
protected  boolean isVisibleById(String id)
           
protected  boolean isVisibleByXpath(String locator)
           
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.
protected  void jiraAwareWaitAndClick(org.openqa.selenium.By by, String message)
           
protected  void jiraAwareWaitAndClick(org.openqa.selenium.By by, String message, Failable failable)
           
protected  org.openqa.selenium.WebElement jiraAwareWaitFor(org.openqa.selenium.By by, int seconds, String message)
           
protected  org.openqa.selenium.WebElement jiraAwareWaitFor(org.openqa.selenium.By by, String message)
           
protected  void jiraAwareWaitFor(org.openqa.selenium.By by, String message, Failable failable)
           
protected  void jiraAwareWaitFors(org.openqa.selenium.By by, String message)
           
protected  void navigateInternal()
          SeleniumBaseTest.fail from navigateInternal results in the test not being recorded as a failure in CI.
protected  void open(String url)
           
protected  void passed()
          Set the test state to passed, this method is required to be called at the conclusion of a test for the saucelabs state of a test to be updated.
protected  void performParameterInquiry(String parameterField)
           
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 selectFrame(String locator)
           
protected  void selectFrameIframePortlet()
           
protected  void selectOption(org.openqa.selenium.By by, String optionValue)
          Uses Selenium's findElements method which does not throw a test exception if not found.
protected  void selectOptionByName(String name, String optionValue)
           
protected  void selectOptionByXpath(String locator, String optionValue)
           
protected  void selectTopFrame()
           
protected  void selectWindow(String locator)
           
 void setUiFramework(String uiFramework)
          Sets which UIF is used by this test
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.
protected  void testAddingBrownGroup()
           
protected  void testAddingNamespace()
           
protected  void testAddingNamespace(Failable failable)
           
protected  void testAddLineAllDay(String idPrefix, String addLineIdSuffix)
           
protected  void testAddLineWithAllDay(String idPrefix, String addLineIdSuffix)
           
protected  void testAddLineWithSpecificTime(String idPrefix, String addLineIdSuffix)
           
protected  void testAttributeDefinitionLookUp()
           
protected  void testCancelConfirmation()
           
protected  void testCategoryLookUp()
           
protected  void testConfigParamaterBlanketApprove()
           
protected  void testConfigurationTestView(String idPrefix)
           
protected  void testCopyComponent(String docId, String componentName, String componentCode)
           
protected  List<String> testCopyParameter(String docId, String parameterName)
           
protected  List<String> testCopyParameterType(String docId, String parameterType, String parameterCode)
           
protected  void testCreateDocType()
           
protected  void testCreateNewAgenda()
           
protected  void testCreateNewCancel()
           
protected  String testCreateNewComponent(String componentName, String componentCode)
           
protected  String testCreateNewComponent(String componentName, String componentCode, String message)
           
protected  List<String> testCreateNewParameter(String docId, String parameterName)
           
protected  List<String> testCreateNewParameterType(String docId, String parameterType, String parameterCode)
           
protected  List<String> testCreateNewPermission(String docId, String permissionName)
           
protected  List<String> testCreateNewPerson(String docId, String personName)
           
protected  void testCreateNewRRDTravelRequestDestRouting()
           
protected  void testCreateNewSearchReturnValueCancelConfirmation()
           
protected  void testCreateSampleEDocLite()
           
protected  void testDisplayOnlyExternalHelp2()
          Test the external help on the sub-section and display only fields
protected  void testDisplayOnlyTooltipHelp()
          Test the tooltip help on the sub-section and fields that are display only
protected  void testDocTypeLookup()
           
protected  void testEditComponent(String docId, String componentName, String componentCode)
           
protected  List<String> testEditParameter(String docId, String parameterName)
           
protected  List<String> testEditParameterType(String docId, String parameterType, String parameterCode)
           
protected  List<String> testEditPermission(String docId, String permissionName)
           
protected  void testEditRouteRulesDelegation()
           
protected  void testExternalHelp2()
          Test the external help on the section and fields
protected  void testFiscalOfficerInfoMaintenanceNew()
           
protected  void testIdentityGroupBlanketApprove()
           
protected  void testIdentityPermissionBlanketApprove()
           
protected  void testIdentityPersonBlanketApprove()
           
protected  void testIdentityResponsibilityBlanketApprove()
           
protected  void testIdentityRoleBlanketApprove()
           
protected  void testLocationCampusBlanketApprove()
           
protected  void testLocationCountryBlanketApprove()
           
protected  void testLocationCountyBlanketApprove()
           
protected  void testLocationPostBlanketApprove()
           
protected  void testLocationStateBlanketApprove()
           
protected  void testLookUp()
           
protected  void testLookUpComponent(String docId, String componentName, String componentCode)
           
protected  List<String> testLookUpParameter(String docId, String parameterName)
           
protected  List<String> testLookUpParameterType(String docId, String parameterType, String parameterCode)
           
protected  List<String> testLookUpPermission(String docId, String permissionName)
           
protected  List<String> testLookUpPerson(String docId, String personName)
           
protected  void testMissingExternalHelp2()
          Test the external help on the section and fields with missing help URL
protected  void testMissingTooltipHelp()
          Test the tooltip help on the section and fields with no content
protected  void testPageHelp()
          Test the tooltip and external help on the page
protected  void testPeopleFlow()
           
protected  void testReferenceCampusTypeBlanketApprove()
           
protected  void testSearchEditCancel()
           
protected  void testServerErrorsIT()
           
protected  void testServerInfoIT()
           
protected  void testServerWarningsIT()
           
 void testSetUp()
          Failures in testSetup cause the test to not be recorded.
protected  void testSubCollectionSize()
           
protected  void testTermLookUp()
           
protected  void testTermLookupAssertions()
           
protected  void testTermSpecificationLookupAssertions()
           
protected  void testTooltipHelp()
          Test the tooltip help on the section and fields
protected  void testUifTooltip(String NAME_FIELD_1, String NAME_FIELD_2)
           
protected  void testValidCharsConstraintIT()
           
protected  void testVerifyAddDeleteFiscalOfficerLegacy()
           
protected  void testVerifyAddDeleteNoteLegacy()
           
protected  void testVerifyAdHocRecipientsLegacy()
           
protected  void testVerifyButtonsLegacy()
           
protected  void testVerifyConstraintText()
           
protected  void testVerifyCopyComponent(String docId, String componentName, String componentCode)
           
protected  List<String> testVerifyCopyParameterType(String docId, String parameterType, String parameterCode)
           
protected  void testVerifyDisclosures()
           
protected  void testVerifyDocumentOverviewLegacy()
           
protected  void testVerifyEditedComponent(String docId, String componentName, String componentCode)
           
protected  void testVerifyExpandCollapse()
           
protected  void testVerifyFieldsLegacy()
           
protected  void testVerifyHeaderFieldsLegacy()
           
protected  void testVerifyLookupAddMultipleLinesLegacy()
           
protected  List<String> testVerifyModifiedParameter(String docId, String parameterName)
           
protected  void testVerifyNotesAndAttachments()
           
protected  List<String> testVerifyPermission(String docId, String permissionName)
           
protected  List<String> testVerifyPerson(String docId, String personName)
           
protected  void testVerifyQuickfinderIconsLegacy()
           
protected  void testVerifyRouteLog()
           
protected  void testVerifySave()
           
protected  void testVerifySubsidizedPercentWatermarkLegacy()
           
protected  void testViewHelp()
          Test the tooltip and external help on the view
protected  void testViewHelp2()
          Test the tooltip and external help on the view
protected  void testWorkFlowDocTypeBlanketApprove()
           
protected  void testWorkFlowRouteRulesBlanketApp()
           
protected  void testWorkFlowRouteRulesCreateNew()
           
protected  void testWorkFlowRouteRulesEditRouteRules()
          tests that a Routing Rule maintenance document is created for an edit operation originating from a lookup screen
protected  void uncheck(org.openqa.selenium.By by)
           
protected  void uncheckByName(String name)
           
protected  void uncheckByXpath(String locator)
           
protected  boolean validateErrorImage(boolean validateVisible)
           
protected  void verifyRichMessagesValidationAdvancedFunctionality()
           
protected  void verifyRichMessagesValidationBasicFunctionality()
           
protected  void verifyRichMessagesValidationLettersNumbersValidation()
           
protected  void verifyRichMessagesValidationLinkDeclarationsFunctionality()
           
protected  void verifyRichMessagesValidationRadioAndCheckBoxGroupFunctionality()
           
protected  void waitAndCancelConfirmation()
           
protected  void waitAndClick(org.openqa.selenium.By by)
           
protected  void waitAndClick(org.openqa.selenium.By by, Failable failable)
           
protected  void waitAndClick(String locator)
           
protected  void waitAndClick(String locator, String message)
           
protected  void waitAndClickAdministration(Failable failable)
          ADMINISTRATION_LINK_TEXT
protected  void waitAndClickButtonByText(String buttonText)
           
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, Failable failable)
           
protected  void waitAndClickByLinkText(String text, String message)
           
protected  void waitAndClickByLinkText(String text, String message, Failable failable)
           
protected  void waitAndClickByName(String name)
           
protected  void waitAndClickByName(String name, String message)
           
protected  void waitAndClickByXpath(String xpath)
           
protected  void waitAndClickByXpath(String xpath, Failable failable)
           
protected  void waitAndClickByXpath(String xpath, String message)
           
protected  void waitAndClickCancel()
          CANCEL_NAME
protected  void waitAndClickCloseWindow()
          CLOSE_WINDOW_XPATH_TITLE
protected  void waitAndClickCopy()
          COPY_LINK_TEXT
protected  void waitAndClickCreateNew()
          CREATE_NEW_XPATH
protected  void waitAndClickDocSearch()
          {}@link #DOC_SEARCH_XPATH}
protected  void waitAndClickDocSearchTitle()
          DOC_SEARCH_XPATH_TITLE
protected  void waitAndClickEdit()
           
protected  void waitAndClickKRAD()
          KRAD_XPATH
protected  void waitAndClickLogout()
          LOGOUT_XPATH
protected  void waitAndClickLogout(Failable failable)
          LOGOUT_XPATH
protected  void waitAndClickMainMenu(Failable failable)
          {}@link #MAIN_MENU_LINK_TEXT}
protected  void waitAndClickReturnValue()
           
protected  void waitAndClickSave()
          SAVE_XPATH
protected  void waitAndClickSearch()
          SEARCH_XPATH
protected  void waitAndClickSearch2()
           
protected  void waitAndClickSearch3()
           
protected  void waitAndClickSubmit()
          SUBMIT_XPATH
protected  void waitAndClickXMLIngester(Failable failable)
          XML_INGESTER_LINK_TEXT
protected  void waitAndCreateNew()
           
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  String[] waitAndGetText(org.openqa.selenium.By by)
           
protected  void waitAndSelectByName(String name, String selectText)
           
protected  void waitAndType(org.openqa.selenium.By by, String text)
           
protected  void waitAndType(org.openqa.selenium.By by, String text, String message)
           
protected  void waitAndType(String selector, String text)
           
protected  void waitAndTypeById(String id, String text)
           
protected  void waitAndTypeByName(String name, String text)
           
protected  void waitAndTypeByXpath(String locator, String text)
           
protected  void waitAndTypeByXpath(String locator, String text, String message)
           
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  String waitForDocId()
           
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, String message)
           
protected  org.openqa.selenium.WebElement waitForElementPresentById(String id)
           
protected  void waitForElementPresentById(String id, String message)
           
protected  org.openqa.selenium.WebElement waitForElementPresentByName(String name)
           
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  void waitForElementVisible(String elementLocator, String message)
          Uses Selenium's findElements method which does not throw a test exception if not found.
protected  void waitForElementVisibleBy(org.openqa.selenium.By by, String message)
           
protected  void waitForElementVisibleById(String id, String message)
           
protected  void waitForPageToLoad()
           
protected  void waitForTitleToEqualKualiPortalIndex()
           
protected  void waitForTitleToEqualKualiPortalIndex(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 waitNotVisibleByXpath(String locator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.samplu.common.Failable
fail
 

Field Detail

ADMINISTRATION_LINK_TEXT

public static final String ADMINISTRATION_LINK_TEXT
Administration

See Also:
Constant Field Values

AGENDA_LOOKUP_LINK_TEXT

public static final String AGENDA_LOOKUP_LINK_TEXT
Agenda Lookup

See Also:
Constant Field Values

ARIA_INVALID_XPATH

public static final String ARIA_INVALID_XPATH
"//input[@aria-invalid]"

See Also:
Constant Field Values

BLANKET_APPROVE_NAME

public static final String BLANKET_APPROVE_NAME
methodToCall.blanketApprove

See Also:
Constant Field Values

CANCEL_NAME

public static final String CANCEL_NAME
methodToCall.cancel different cancel than CANCEL2_XPATH

See Also:
Constant Field Values

CANCEL2_XPATH

public static final String CANCEL2_XPATH
//a[contains(text(), 'ancel')] Different cancel than CANCEL_NAME

See Also:
Constant Field Values

CLOSE_WINDOW_XPATH_TITLE

public static final String CLOSE_WINDOW_XPATH_TITLE
//*[@title='close this window']

See Also:
Constant Field Values

COLLECTIONS_LINK_TEXT

public static final String COLLECTIONS_LINK_TEXT
Collections

See Also:
Constant Field Values

CONFIGURATION_VIEW_WINDOW_TITLE

public static final String CONFIGURATION_VIEW_WINDOW_TITLE
"Kuali :: Configuration Test View"

See Also:
Constant Field Values

CONFIGURATION_VIEW_XPATH

public static final String CONFIGURATION_VIEW_XPATH
(//a[contains(text(),'Configuration Test View')])[3]

See Also:
Constant Field Values

COPY_LINK_TEXT

public static final String COPY_LINK_TEXT
copy

See Also:
Constant Field Values

CREATE_NEW_DOCUMENT_NOT_SUBMITTED_SUCCESSFULLY_MESSAGE_TEXT

public static final String CREATE_NEW_DOCUMENT_NOT_SUBMITTED_SUCCESSFULLY_MESSAGE_TEXT
New Document not submitted successfully

See Also:
Constant Field Values

CREATE_NEW_XPATH

public static final String CREATE_NEW_XPATH
//img[@alt='create new']

See Also:
Constant Field Values

DEFAULT_WAIT_SEC

public static final int DEFAULT_WAIT_SEC
Default "long" wait period is 30 seconds. See REMOTE_PUBLIC_WAIT_SECONDS_PROPERTY to configure

See Also:
Constant Field Values

DIV_LEFT_ERRMSG

public static final String DIV_LEFT_ERRMSG
//div[@class='left-errmsg-tab']/div/div

See Also:
Constant Field Values

DOC_CODE_XPATH

public static final String DOC_CODE_XPATH
//input[@id='document.newMaintainableObject.code']

See Also:
Constant Field Values

DOC_ID_XPATH

public static final String DOC_ID_XPATH
//div[@id='headerarea']/div/table/tbody/tr[1]/td[1]

See Also:
Constant Field Values

DOC_ID_XPATH_2

public static final String DOC_ID_XPATH_2
//table[@id='row']/tbody/tr[1]/td[1

See Also:
Constant Field Values

DOC_ID_XPATH_3

public static final String DOC_ID_XPATH_3
//table[@id='row']/tbody/tr[1]/td[1]/a

See Also:
Constant Field Values

DOC_DESCRIPTION_XPATH

public static final String DOC_DESCRIPTION_XPATH
//input[@id='document.documentHeader.documentDescription']

See Also:
Constant Field Values

DOC_SEARCH_XPATH

public static final String DOC_SEARCH_XPATH
"//img[@alt='doc search']

See Also:
Constant Field Values

DOC_SEARCH_XPATH_TITLE

public static final String DOC_SEARCH_XPATH_TITLE
//a[@title='Document Search']

See Also:
Constant Field Values

DOC_STATUS_ENROUTE

public static final String DOC_STATUS_ENROUTE
ENROUTE

See Also:
Constant Field Values

DOC_STATUS_FINAL

public static final String DOC_STATUS_FINAL
FINAL

See Also:
Constant Field Values

DOC_STATUS_SAVED

public static final String DOC_STATUS_SAVED
SAVED

See Also:
Constant Field Values

DOC_STATUS_XPATH

public static final String DOC_STATUS_XPATH
//table[@class='headerinfo']//tr[1]/td[2]

See Also:
Constant Field Values

DOC_STATUS_XPATH_2

public static final String DOC_STATUS_XPATH_2
//table[@id='row']/tbody/tr[1]/td[4]

See Also:
Constant Field Values

DOC_SUBMIT_SUCCESS_MSG_XPATH

public static final String DOC_SUBMIT_SUCCESS_MSG_XPATH
//div[contains(div,'Document was successfully submitted.')]

See Also:
Constant Field Values

DONT_TEAR_DOWN_ON_FAILURE_PROPERTY

public static final String DONT_TEAR_DOWN_ON_FAILURE_PROPERTY
Set -Dremote.driver.dontTearDownOnFailure=

See Also:
Constant Field Values

EDIT_LINK_TEXT

public static final String EDIT_LINK_TEXT
edit

See Also:
Constant Field Values

IFRAMEPORTLET_NAME

public static final String IFRAMEPORTLET_NAME
iframeportlet

See Also:
Constant Field Values

KITCHEN_SINK_XPATH

public static final String KITCHEN_SINK_XPATH
(//a[contains(text(),'Uif Components (Kitchen Sink)')])[2]

See Also:
Constant Field Values

KRAD_XPATH

public static final String KRAD_XPATH
KRAD

See Also:
Constant Field Values

KUALI_UIF_COMPONENTS_WINDOW_XPATH

public static final String KUALI_UIF_COMPONENTS_WINDOW_XPATH
Kuali :: Uif Components

See Also:
Constant Field Values

KUALI_VIEW_WINDOW_TITLE

public static final String KUALI_VIEW_WINDOW_TITLE
"Kuali :: View Title"

See Also:
Constant Field Values

LOGOUT_XPATH

public static final String LOGOUT_XPATH
//input[@name='imageField' and @value='Logout']

See Also:
Constant Field Values

MAIN_MENU_LINK_TEXT

public static final String MAIN_MENU_LINK_TEXT
Main Menu

See Also:
Constant Field Values

REGEX_ERROR

public static final String REGEX_ERROR
^[\s\S]*error[\s\S]*$"

See Also:
Constant Field Values

REGEX_VALID

public static final String REGEX_VALID
^[\s\S]*valid[\s\S]*$

See Also:
Constant Field Values

REMOTE_PUBLIC_USER_PROPERTY

public static final String REMOTE_PUBLIC_USER_PROPERTY
Set -Dremote.public.user= to the username to login as

See Also:
Constant Field Values

REMOTE_PUBLIC_USERPOOL_PROPERTY

public static final String REMOTE_PUBLIC_USERPOOL_PROPERTY
You probably don't want to really be using a userpool, set -Dremote.public.userpool= to base url if you must.

See Also:
Constant Field Values

REMOTE_PUBLIC_WAIT_SECONDS_PROPERTY

public static final String REMOTE_PUBLIC_WAIT_SECONDS_PROPERTY
Set -Dremote.public.wait.seconds to override DEFAULT_WAIT_SEC

See Also:
Constant Field Values

RETURN_VALUE_LINK_TEXT

public static final String RETURN_VALUE_LINK_TEXT
return value

See Also:
Constant Field Values

RICH_MESSAGES_WINDOW_TITLE

public static final String RICH_MESSAGES_WINDOW_TITLE
Kuali :: Rich Messages

See Also:
Constant Field Values

SAVE_SUCCESSFUL_XPATH

public static final String SAVE_SUCCESSFUL_XPATH
//div[contains(div,'Document was successfully saved.')]

See Also:
Constant Field Values

SAVE_XPATH

public static final String SAVE_XPATH
//input[@name='methodToCall.save' and @alt='save']

See Also:
Constant Field Values

SAVE_XPATH_2

public static final String SAVE_XPATH_2
KIM Screens //*[@name='methodToCall.save' and @alt='save']

See Also:
Constant Field Values

SAVE_XPATH_3

public static final String SAVE_XPATH_3
//input[@title='search' and @name='methodToCall.search']

See Also:
Constant Field Values

SEARCH_XPATH

public static final String SEARCH_XPATH
//input[@name='methodToCall.search' and @value='search']

See Also:
Constant Field Values

SUBMIT_XPATH

public static final String SUBMIT_XPATH
//input[@name='methodToCall.route' and @alt='submit']

See Also:
Constant Field Values

SEARCH_XPATH_2

public static final String SEARCH_XPATH_2
//input[@value='search']

See Also:
Constant Field Values

SEARCH_XPATH_3

public static final String SEARCH_XPATH_3
//button[contains(text(),'Search')]

See Also:
Constant Field Values

SUB_COLLECTION_UIF_DISCLOSURE_SPAN_UIF_HEADER_TEXT_SPAN_XPATH

public static final 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

See Also:
Constant Field Values

TIMEOUT_MESSAGE

public static final String TIMEOUT_MESSAGE
timeout

See Also:
Constant Field Values

TRAVEL_ACCOUNT_LOOKUP_LINK_TEXT

public static final String TRAVEL_ACCOUNT_LOOKUP_LINK_TEXT
Travel Account Lookup

See Also:
Constant Field Values

UIF_COMPONENTS_KITCHEN_SINK_LINK_TEXT

public static final String UIF_COMPONENTS_KITCHEN_SINK_LINK_TEXT
Uif Components (Kitchen Sink)

See Also:
Constant Field Values

VALIDATION_FRAMEWORK_DEMO_XPATH

public static final String VALIDATION_FRAMEWORK_DEMO_XPATH
(//a[contains(text(),'Validation Framework Demo')])[2]

See Also:
Constant Field Values

KUALI_COLLECTION_TOTALLING_WINDOW_XPATH

public static final String KUALI_COLLECTION_TOTALLING_WINDOW_XPATH
Kuali :: Collection Totaling

See Also:
Constant Field Values

KUALI_COLLECTION_TOTALLING_XPATH

public static final String KUALI_COLLECTION_TOTALLING_XPATH
//a[text()='Collection Totaling']

See Also:
Constant Field Values

XML_INGESTER_LINK_TEXT

public static final String XML_INGESTER_LINK_TEXT
XML Ingester

See Also:
Constant Field Values

FISCAL_OFFICER_INFO_MAINTENANCE_NEW_XPATH

public static final String FISCAL_OFFICER_INFO_MAINTENANCE_NEW_XPATH
//a[@title='FiscalOfficerInfo Maintenance (New)']

See Also:
Constant Field Values

driver

protected org.openqa.selenium.WebDriver driver

user

protected String user

waitSeconds

protected int waitSeconds

passed

protected boolean passed

uiFramework

protected String uiFramework

testName

public org.junit.rules.TestName testName

testMethodName

protected String testMethodName

jGrowlHeader

protected String jGrowlHeader
Constructor Detail

WebDriverLegacyITBase

public WebDriverLegacyITBase()
Method Detail

chromeDriverService

public static void chromeDriverService()
                                throws Exception
If WebDriverUtil.chromeDriverCreateCheck() returns a ChromeDriverService, start it. WebDriverUtil.chromeDriverCreateCheck()

Throws:
Exception

getTestUrl

public abstract String getTestUrl()
Navigation tests should return ITUtil.PORTAL. Bookmark tests should return BOOKMARK_URL.

Returns:
string

navigateInternal

protected void navigateInternal()
                         throws Exception
SeleniumBaseTest.fail from navigateInternal results in the test not being recorded as a failure in CI.

Throws:
Exception

startSession

protected void startSession(Method method)
                     throws Exception
Throws:
Exception

testSetUp

public void testSetUp()
Failures in testSetup cause the test to not be recorded. Future plans are to extract form @Before and call at the start of each test. Setup the WebDriver properties, test, and login. Named testSetUp so it runs after TestNG's startSession(Method) WebDriverUtil.determineUser(String) WebDriverUtil.setUp(String, String, String, String)


tearDown

public void tearDown()
Tear down test as configured. Do not allow exceptions to be thrown by tearDown, it kills the test run. WebDriverUtil.tearDown(boolean, String, String, String) REMOTE_PUBLIC_USERPOOL_PROPERTY ITUtil.dontTearDownPropertyNotSet()

Throws:
Exception

passed

protected void passed()
Set the test state to passed, this method is required to be called at the conclusion of a test for the saucelabs state of a test to be updated.


agendaLookupAssertions

protected void agendaLookupAssertions()
                               throws Exception
Throws:
Exception

alertAccept

protected void alertAccept()
Accept the javascript alert (clicking OK)


alertDismiss

protected void alertDismiss()
Dismiss the javascript alert (clicking Cancel)


assertAttributeClassRegexDoesntMatch

protected void assertAttributeClassRegexDoesntMatch(String field,
                                                    String regex)
                                             throws InterruptedException
Throws:
InterruptedException

assertAttributeClassRegexMatches

protected void assertAttributeClassRegexMatches(String field,
                                                String regex)
                                         throws InterruptedException
Throws:
InterruptedException

assertBlanketApproveButtonsPresent

protected void assertBlanketApproveButtonsPresent()

assertButtonDisabledByText

protected void assertButtonDisabledByText(String buttonText)

assertButtonEnabledByText

protected void assertButtonEnabledByText(String buttonText)

assertCancelConfirmation

protected void assertCancelConfirmation()
                                 throws InterruptedException
Throws:
InterruptedException

assertDocFinal

protected void assertDocFinal(String docId)
                       throws InterruptedException
Throws:
InterruptedException

assertElementPresentByName

protected void assertElementPresentByName(String name)

assertElementPresentByName

protected void assertElementPresentByName(String name,
                                          String message)

assertElementPresentByXpath

protected void assertElementPresentByXpath(String locator)

assertElementPresentByXpath

protected void assertElementPresentByXpath(String locator,
                                           String message)

assertElementPresentByLinkText

protected void assertElementPresentByLinkText(String linkText)

assertElementPresent

protected void assertElementPresent(String locator)

assertFocusTypeBlurError

protected void assertFocusTypeBlurError(String field,
                                        String textToType)
                                 throws InterruptedException
Throws:
InterruptedException

assertFocusTypeBlurError

protected void assertFocusTypeBlurError(String field,
                                        String[] errorInputs)
                                 throws InterruptedException
Throws:
InterruptedException

assertFocusTypeBlurValid

protected void assertFocusTypeBlurValid(String field,
                                        String textToType)
                                 throws InterruptedException
Throws:
InterruptedException

assertFocusTypeBlurValid

protected void assertFocusTypeBlurValid(String field,
                                        String[] validInputs)
                                 throws InterruptedException
Throws:
InterruptedException

assertIsVisibleByXpath

protected void assertIsVisibleByXpath(String xpath,
                                      String message)

assertIsNotVisibleByXpath

protected void assertIsNotVisibleByXpath(String xpath,
                                         String message)

assertIsVisible

protected void assertIsVisible(String locator)

assertIsVisibleById

protected void assertIsVisibleById(String id)

assertIsNotVisible

protected void assertIsNotVisible(String locator)

assertIsNotVisibleByXpath

protected void assertIsNotVisibleByXpath(String xpath)

assertLabelFor

protected void assertLabelFor(String forElementId,
                              String labelText)

assertPopUpWindowUrl

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.

Parameters:
by - The locating mechanism of the element to be clicked
windowName - The name of the popup window
url - The URL of the popup window

assertTableLayout

protected void assertTableLayout()

assertTextPresent

protected void assertTextPresent(String text)
Warning, this only does a check against the page source. The form url can have random character that match simple text

Parameters:
text -

assertTextPresent

protected void assertTextPresent(String text,
                                 String message)
Warning, this only does a check against the page source. The form url can have random character that match simple text

Parameters:
text -

assertTextPresent

protected void assertTextPresent(String text,
                                 String cssSelector,
                                 String message)
Warning, this only does a check against the page source. The form url can have random character that match simple text

Parameters:
text -

assertTextNotPresent

protected void assertTextNotPresent(String text)
Asset that the given text does not occur in the page Warning, this only does a check against the page source. The form url can have random character that match simple text

Parameters:
text - the text to search for

assertTextNotPresent

protected void assertTextNotPresent(String text,
                                    String message)
Assert that the given text does not occur in the page, and add an additional message to the failure

Parameters:
text - the text to search for
message - the message to add to the failure

back

protected void back()

blanketApproveCheck

protected void blanketApproveCheck()
                            throws InterruptedException
Throws:
InterruptedException

blanketApproveTest

protected void blanketApproveTest()
                           throws InterruptedException
Tests blanket approve action. This method is used by several different tests which perform various types of blanket approvals. Therefore, this is a candidate to remain in this base class

Throws:
InterruptedException

check

protected void check(org.openqa.selenium.By by)
              throws InterruptedException
Throws:
InterruptedException

checkById

protected void checkById(String id)
                  throws InterruptedException
Throws:
InterruptedException

checkByName

protected void checkByName(String name)
                    throws InterruptedException
Throws:
InterruptedException

checkByXpath

protected void checkByXpath(String locator)
                     throws InterruptedException
Throws:
InterruptedException

checkErrorMessageItem

protected void checkErrorMessageItem(String message)

checkForDocError

public void checkForDocError()
Uses Selenium's findElements method which does not throw a test exception if not found.


extractErrorText

protected String extractErrorText()

hasDocError

public boolean hasDocError()
Uses Selenium's findElements method which does not throw a test exception if not found.

Returns:

hasDocError

public boolean hasDocError(String errorTextToMatch)
Uses Selenium's findElements method which does not throw a test exception if not found.

Parameters:
errorTextToMatch -
Returns:

checkForIncidentReport

protected void checkForIncidentReport()

checkForIncidentReport

protected void checkForIncidentReport(String locator)

checkForIncidentReport

protected void checkForIncidentReport(String locator,
                                      String message)

checkForIncidentReport

protected void checkForIncidentReport(String locator,
                                      Failable failable,
                                      String message)

clearText

protected void clearText(org.openqa.selenium.By by)
                  throws InterruptedException
Throws:
InterruptedException

clearText

protected void clearText(String selector)
                  throws InterruptedException
Throws:
InterruptedException

clearTextByName

protected void clearTextByName(String name)
                        throws InterruptedException
Throws:
InterruptedException

clearTextByXpath

protected void clearTextByXpath(String locator)
                         throws InterruptedException
Throws:
InterruptedException

close

protected void close()

colapseExpandByXpath

protected void colapseExpandByXpath(String clickLocator,
                                    String visibleLocator)
                             throws InterruptedException
Throws:
InterruptedException

configNameSpaceBlanketApprove

protected String configNameSpaceBlanketApprove()
                                        throws Exception
Throws:
Exception

contextLookupAssertions

protected void contextLookupAssertions()
                                throws Exception
Throws:
Exception

expandColapseByXpath

protected void expandColapseByXpath(String clickLocator,
                                    String visibleLocator)
                             throws InterruptedException
Throws:
InterruptedException

getAllWindowTitles

public String[] getAllWindowTitles()
WebDriver.getWindowHandles()

Returns:

waitAndGetAttribute

protected String waitAndGetAttribute(org.openqa.selenium.By by,
                                     String attribute)
                              throws InterruptedException
Throws:
InterruptedException

waitAndGetAttributeByName

protected String waitAndGetAttributeByName(String name,
                                           String attribute)
                                    throws InterruptedException
Get value of any attribute by using element name

Parameters:
name - name of an element
attribute - the name of an attribute whose value is to be retrieved
Throws:
InterruptedException

waitAndGetAttributeByXpath

protected String waitAndGetAttributeByXpath(String locator,
                                            String attribute)
                                     throws InterruptedException
Get value of any attribute by using element xpath

Parameters:
locator - locating mechanism of an element
attribute - the name of an attribute whose value is to be retrieved
Throws:
InterruptedException

waitAndGetText

protected String[] waitAndGetText(org.openqa.selenium.By by)
                           throws InterruptedException
Throws:
InterruptedException

getBaseUrlString

protected String getBaseUrlString()

getCssCount

protected int getCssCount(String selector)

getCssCount

protected int getCssCount(org.openqa.selenium.By by)
Uses Selenium's findElements method which does not throw a test exception if not found.

Parameters:
by -
Returns:

getDocStatus

protected String getDocStatus()

getSelectOptions

protected String[] getSelectOptions(org.openqa.selenium.By by)
                             throws InterruptedException
Uses Selenium's findElements for getting the options (findElement for the select) method which does not throw a test exception if not found.

Parameters:
by -
Returns:
Throws:
InterruptedException

getSelectOptionsByName

protected String[] getSelectOptionsByName(String name)
                                   throws InterruptedException
Throws:
InterruptedException

getSelectOptionsByXpath

protected String[] getSelectOptionsByXpath(String locator)
                                    throws InterruptedException
Throws:
InterruptedException

getSessionId

public String getSessionId()
Returns:
sessionId

getText

protected String getText(org.openqa.selenium.By by)
                  throws InterruptedException
Throws:
InterruptedException

getTextByClassName

protected String getTextByClassName(String className)
                             throws InterruptedException
Throws:
InterruptedException

getTextById

protected String getTextById(String id)
                      throws InterruptedException
Throws:
InterruptedException

getTextByName

protected String getTextByName(String name)
                        throws InterruptedException
Throws:
InterruptedException

getText

protected String getText(String locator)
                  throws InterruptedException
Throws:
InterruptedException

getTextByXpath

protected String getTextByXpath(String locator)
                         throws InterruptedException
Throws:
InterruptedException

getTitle

protected String getTitle()

getUserName

public String getUserName()
"admin" by default. Can be overridden using REMOTE_PUBLIC_USER_PROPERTY

Returns:
string

gotoNestedFrame

protected void gotoNestedFrame()
Handles simple nested frame content; validates that a frame and nested frame exists before switching to it Uses Selenium's findElements method which does not throw a test exception if not found.


failableFail

public void failableFail(String message)
Fail using the Failable fail method. Calls jGrowlSticky then fail.

Parameters:
message - to display with failure

findButtonByText

protected org.openqa.selenium.WebElement findButtonByText(String buttonText)

findElement

protected org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)

findElement

protected org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by,
                                                     org.openqa.selenium.WebElement elementToFindOn)

findVisibleElements

protected List<org.openqa.selenium.WebElement> findVisibleElements(org.openqa.selenium.By by)

findElements

protected List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)

fireEvent

protected void fireEvent(String name,
                         String event)

fireEvent

protected void fireEvent(String name,
                         String value,
                         String event)

fireMouseOverEventByName

public void fireMouseOverEventByName(String name)
Actions.moveToElement(org.openqa.selenium.WebElement)

Parameters:
name -

fireMouseOverEventById

public void fireMouseOverEventById(String id)
Actions.moveToElement(org.openqa.selenium.WebElement)

Parameters:
id -

fireMouseOverEventByXpath

public void fireMouseOverEventByXpath(String locator)
Actions.moveToElement(org.openqa.selenium.WebElement)

Parameters:
locator -

fireMouseOverEvent

public void fireMouseOverEvent(org.openqa.selenium.By by)
Actions.moveToElement(org.openqa.selenium.WebElement)

Parameters:
by -

isChecked

protected boolean isChecked(org.openqa.selenium.By by)

isCheckedById

protected boolean isCheckedById(String id)

isCheckedByName

protected boolean isCheckedByName(String name)

isCheckedByXpath

protected boolean isCheckedByXpath(String locator)

isEnabled

protected boolean isEnabled(org.openqa.selenium.By by)

isEnabledById

protected boolean isEnabledById(String id)

isEnabledByName

protected boolean isEnabledByName(String name)

isEnabledByXpath

protected boolean isEnabledByXpath(String locator)

howManyAreVisible

protected int howManyAreVisible(org.openqa.selenium.By by)
                         throws InterruptedException
Throws:
InterruptedException

isElementPresent

protected boolean isElementPresent(org.openqa.selenium.By by)
Uses Selenium's findElements method which does not throw a test exception if not found.

Parameters:
by -
Returns:

isElementPresent

protected boolean isElementPresent(String locator)
Uses Selenium's findElements method which does not throw a test exception if not found.

Parameters:
locator -
Returns:

isElementPresentById

protected boolean isElementPresentById(String id)

isElementPresentByName

protected boolean isElementPresentByName(String name)

isElementPresentByXpath

protected boolean isElementPresentByXpath(String locator)

isElementPresentByLinkText

protected boolean isElementPresentByLinkText(String locator)

isElementPresentByDataAttributeValue

protected boolean isElementPresentByDataAttributeValue(String dataAttributeName,
                                                       String dataAttributeValue)

isNotVisible

protected boolean isNotVisible(org.openqa.selenium.By by)

isTextPresent

protected Boolean isTextPresent(String text)

isVisible

protected boolean isVisible(String locator)

isVisible

protected boolean isVisible(org.openqa.selenium.By by)

isVisibleById

protected boolean isVisibleById(String id)

isVisibleByXpath

protected boolean isVisibleByXpath(String locator)

jGrowl

protected void jGrowl(String message)

jGrowlSticky

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.


jiraAwareWaitAndClick

protected void jiraAwareWaitAndClick(org.openqa.selenium.By by,
                                     String message)
                              throws InterruptedException
Throws:
InterruptedException

jiraAwareWaitAndClick

protected void jiraAwareWaitAndClick(org.openqa.selenium.By by,
                                     String message,
                                     Failable failable)
                              throws InterruptedException
Throws:
InterruptedException

jiraAwareWaitFor

protected org.openqa.selenium.WebElement jiraAwareWaitFor(org.openqa.selenium.By by,
                                                          String message)
                                                   throws InterruptedException
Throws:
InterruptedException

jiraAwareWaitFors

protected void jiraAwareWaitFors(org.openqa.selenium.By by,
                                 String message)
                          throws InterruptedException
Throws:
InterruptedException

jiraAwareWaitFor

protected void jiraAwareWaitFor(org.openqa.selenium.By by,
                                String message,
                                Failable failable)
                         throws InterruptedException
Throws:
InterruptedException

jiraAwareWaitFor

protected org.openqa.selenium.WebElement jiraAwareWaitFor(org.openqa.selenium.By by,
                                                          int seconds,
                                                          String message)
                                                   throws InterruptedException
Throws:
InterruptedException

open

protected void open(String url)

selectFrameIframePortlet

protected void selectFrameIframePortlet()

selectFrame

protected void selectFrame(String locator)

selectTopFrame

protected void selectTopFrame()

selectWindow

protected void selectWindow(String locator)

selectByXpath

protected void selectByXpath(String locator,
                             String selectText)
                      throws InterruptedException
Throws:
InterruptedException

selectByName

protected void selectByName(String name,
                            String selectText)
                     throws InterruptedException
Throws:
InterruptedException

select

protected void select(org.openqa.selenium.By by,
                      String selectText)
               throws InterruptedException
Uses Selenium's findElements method which does not throw a test exception if not found.

Parameters:
by -
selectText -
Throws:
InterruptedException

selectOptionByName

protected void selectOptionByName(String name,
                                  String optionValue)
                           throws InterruptedException
Throws:
InterruptedException

selectOptionByXpath

protected void selectOptionByXpath(String locator,
                                   String optionValue)
                            throws InterruptedException
Throws:
InterruptedException

selectOption

protected void selectOption(org.openqa.selenium.By by,
                            String optionValue)
                     throws InterruptedException
Uses Selenium's findElements method which does not throw a test exception if not found.

Parameters:
by -
optionValue -
Throws:
InterruptedException

switchToWindow

public void switchToWindow(String title)
If a window contains the given title switchTo it.

Parameters:
title -

testAddingNamespace

protected void testAddingNamespace()
                            throws Exception
Throws:
Exception

testAddingNamespace

protected void testAddingNamespace(Failable failable)
                            throws Exception
Throws:
Exception

assertDocumentStatusSaved

protected void assertDocumentStatusSaved()

testAddingBrownGroup

protected void testAddingBrownGroup()
                             throws Exception
Throws:
Exception

testAttributeDefinitionLookUp

protected void testAttributeDefinitionLookUp()
                                      throws Exception
Throws:
Exception

testCancelConfirmation

protected void testCancelConfirmation()
                               throws InterruptedException
Throws:
InterruptedException

testConfigParamaterBlanketApprove

protected void testConfigParamaterBlanketApprove()
                                          throws Exception
Throws:
Exception

testCreateNewAgenda

protected void testCreateNewAgenda()
                            throws Exception
Throws:
Exception

testCreateDocType

protected void testCreateDocType()
                          throws Exception
Throws:
Exception

testCreateNewCancel

protected void testCreateNewCancel()
                            throws Exception
Throws:
Exception

testCreateNewParameter

protected List<String> testCreateNewParameter(String docId,
                                              String parameterName)
                                       throws Exception
Throws:
Exception

testCreateNewParameterType

protected List<String> testCreateNewParameterType(String docId,
                                                  String parameterType,
                                                  String parameterCode)
                                           throws Exception
Throws:
Exception

testCreateNewSearchReturnValueCancelConfirmation

protected void testCreateNewSearchReturnValueCancelConfirmation()
                                                         throws InterruptedException,
                                                                Exception
Throws:
InterruptedException
Exception

testCopyParameter

protected List<String> testCopyParameter(String docId,
                                         String parameterName)
                                  throws Exception
Throws:
Exception

testCopyParameterType

protected List<String> testCopyParameterType(String docId,
                                             String parameterType,
                                             String parameterCode)
                                      throws Exception
Throws:
Exception

testDocTypeLookup

protected void testDocTypeLookup()
                          throws Exception
Throws:
Exception

testEditParameterType

protected List<String> testEditParameterType(String docId,
                                             String parameterType,
                                             String parameterCode)
                                      throws Exception
Throws:
Exception

testEditParameter

protected List<String> testEditParameter(String docId,
                                         String parameterName)
                                  throws Exception
Throws:
Exception

testEditRouteRulesDelegation

protected void testEditRouteRulesDelegation()
                                     throws Exception
Throws:
Exception

testFiscalOfficerInfoMaintenanceNew

protected void testFiscalOfficerInfoMaintenanceNew()
                                            throws Exception
Throws:
Exception

testIdentityGroupBlanketApprove

protected void testIdentityGroupBlanketApprove()
                                        throws Exception
Throws:
Exception

testIdentityPermissionBlanketApprove

protected void testIdentityPermissionBlanketApprove()
                                             throws Exception
Throws:
Exception

testIdentityPersonBlanketApprove

protected void testIdentityPersonBlanketApprove()
                                         throws Exception
Throws:
Exception

testIdentityResponsibilityBlanketApprove

protected void testIdentityResponsibilityBlanketApprove()
                                                 throws Exception
Throws:
Exception

testIdentityRoleBlanketApprove

protected void testIdentityRoleBlanketApprove()
                                       throws Exception
Throws:
Exception

testLocationCampusBlanketApprove

protected void testLocationCampusBlanketApprove()
                                         throws Exception
Throws:
Exception

testLocationCountryBlanketApprove

protected void testLocationCountryBlanketApprove()
                                          throws InterruptedException
Throws:
InterruptedException

testLocationCountyBlanketApprove

protected void testLocationCountyBlanketApprove()
                                         throws Exception
Throws:
Exception

testLocationPostBlanketApprove

protected void testLocationPostBlanketApprove()
                                       throws Exception
Throws:
Exception

testLocationStateBlanketApprove

protected void testLocationStateBlanketApprove()
                                        throws Exception
Throws:
Exception

testLookUp

protected void testLookUp()
                   throws Exception
Throws:
Exception

performParameterInquiry

protected void performParameterInquiry(String parameterField)
                                throws Exception
Throws:
Exception

testLookUpParameterType

protected List<String> testLookUpParameterType(String docId,
                                               String parameterType,
                                               String parameterCode)
                                        throws Exception
Throws:
Exception

testLookUpParameter

protected List<String> testLookUpParameter(String docId,
                                           String parameterName)
                                    throws Exception
Throws:
Exception

testPeopleFlow

protected void testPeopleFlow()
                       throws Exception
Throws:
Exception

testTermLookupAssertions

protected void testTermLookupAssertions()
                                 throws Exception
Throws:
Exception

testTermSpecificationLookupAssertions

protected void testTermSpecificationLookupAssertions()
                                              throws Exception
Throws:
Exception

testVerifyModifiedParameter

protected List<String> testVerifyModifiedParameter(String docId,
                                                   String parameterName)
                                            throws Exception
Throws:
Exception

testVerifyCopyParameterType

protected List<String> testVerifyCopyParameterType(String docId,
                                                   String parameterType,
                                                   String parameterCode)
                                            throws Exception
Throws:
Exception

testCreateNewPermission

protected List<String> testCreateNewPermission(String docId,
                                               String permissionName)
                                        throws Exception
Throws:
Exception

testLookUpPermission

protected List<String> testLookUpPermission(String docId,
                                            String permissionName)
                                     throws Exception
Throws:
Exception

testEditPermission

protected List<String> testEditPermission(String docId,
                                          String permissionName)
                                   throws Exception
Throws:
Exception

testVerifyPermission

protected List<String> testVerifyPermission(String docId,
                                            String permissionName)
                                     throws Exception
Throws:
Exception

testCreateNewPerson

protected List<String> testCreateNewPerson(String docId,
                                           String personName)
                                    throws Exception
Throws:
Exception

testLookUpPerson

protected List<String> testLookUpPerson(String docId,
                                        String personName)
                                 throws Exception
Throws:
Exception

testVerifyPerson

protected List<String> testVerifyPerson(String docId,
                                        String personName)
                                 throws Exception
Throws:
Exception

testUifTooltip

protected void testUifTooltip(String NAME_FIELD_1,
                              String NAME_FIELD_2)
                       throws Exception
Throws:
Exception

testValidCharsConstraintIT

protected void testValidCharsConstraintIT()
                                   throws Exception
Throws:
Exception

assertFocusTypeBlurValidation

protected void assertFocusTypeBlurValidation(String field,
                                             String[] errorInputs,
                                             String[] validInputs)
                                      throws InterruptedException
Throws:
InterruptedException

testSubCollectionSize

protected void testSubCollectionSize()
                              throws Exception
Throws:
Exception

testConfigurationTestView

protected void testConfigurationTestView(String idPrefix)
                                  throws Exception
Throws:
Exception

confirmAddLineControlsPresent

protected void confirmAddLineControlsPresent(String idPrefix,
                                             String addLineIdSuffix)
verify that add line controls are present


testAddLineWithSpecificTime

protected void testAddLineWithSpecificTime(String idPrefix,
                                           String addLineIdSuffix)
                                    throws Exception
Throws:
Exception

testAddLineWithAllDay

protected void testAddLineWithAllDay(String idPrefix,
                                     String addLineIdSuffix)
                              throws Exception
Throws:
Exception

testAddLineAllDay

protected void testAddLineAllDay(String idPrefix,
                                 String addLineIdSuffix)
                          throws Exception
Throws:
Exception

testCategoryLookUp

protected void testCategoryLookUp()
                           throws Exception
Throws:
Exception

testCreateSampleEDocLite

protected void testCreateSampleEDocLite()
                                 throws Exception
Throws:
Exception

testTermLookUp

protected void testTermLookUp()
                       throws Exception
Throws:
Exception

testWorkFlowRouteRulesBlanketApp

protected void testWorkFlowRouteRulesBlanketApp()
                                         throws Exception
Throws:
Exception

testCreateNewRRDTravelRequestDestRouting

protected void testCreateNewRRDTravelRequestDestRouting()
                                                 throws Exception
Throws:
Exception

testWorkFlowRouteRulesCreateNew

protected void testWorkFlowRouteRulesCreateNew()
                                        throws Exception
Throws:
Exception

testWorkFlowRouteRulesEditRouteRules

protected void testWorkFlowRouteRulesEditRouteRules()
                                             throws Exception
tests that a Routing Rule maintenance document is created for an edit operation originating from a lookup screen

Throws:
Exception

testCreateNewComponent

protected String testCreateNewComponent(String componentName,
                                        String componentCode)
                                 throws Exception
Throws:
Exception

testCreateNewComponent

protected String testCreateNewComponent(String componentName,
                                        String componentCode,
                                        String message)
                                 throws Exception
Throws:
Exception

testLookUpComponent

protected void testLookUpComponent(String docId,
                                   String componentName,
                                   String componentCode)
                            throws Exception
Throws:
Exception

testEditComponent

protected void testEditComponent(String docId,
                                 String componentName,
                                 String componentCode)
                          throws Exception
Throws:
Exception

testCopyComponent

protected void testCopyComponent(String docId,
                                 String componentName,
                                 String componentCode)
                          throws Exception
Throws:
Exception

testVerifyCopyComponent

protected void testVerifyCopyComponent(String docId,
                                       String componentName,
                                       String componentCode)
                                throws Exception
Throws:
Exception

testPageHelp

protected void testPageHelp()
                     throws Exception
Test the tooltip and external help on the page

Throws:
Exception

testTooltipHelp

protected void testTooltipHelp()
                        throws Exception
Test the tooltip help on the section and fields

Throws:
Exception

testDisplayOnlyTooltipHelp

protected void testDisplayOnlyTooltipHelp()
                                   throws Exception
Test the tooltip help on the sub-section and fields that are display only

Throws:
Exception

testMissingTooltipHelp

protected void testMissingTooltipHelp()
                               throws Exception
Test the tooltip help on the section and fields with no content

Throws:
Exception

testExternalHelp2

protected void testExternalHelp2()
                          throws Exception
Test the external help on the section and fields

Throws:
Exception

testDisplayOnlyExternalHelp2

protected void testDisplayOnlyExternalHelp2()
                                     throws Exception
Test the external help on the sub-section and display only fields

Throws:
Exception

testMissingExternalHelp2

protected void testMissingExternalHelp2()
                                 throws Exception
Test the external help on the section and fields with missing help URL

Throws:
Exception

testReferenceCampusTypeBlanketApprove

protected void testReferenceCampusTypeBlanketApprove()
                                              throws Exception
Throws:
Exception

testSearchEditCancel

protected void testSearchEditCancel()
                             throws InterruptedException
Throws:
InterruptedException

testServerErrorsIT

protected void testServerErrorsIT()
                           throws Exception
Throws:
Exception

testServerInfoIT

protected void testServerInfoIT()
                         throws Exception
Throws:
Exception

testServerWarningsIT

protected void testServerWarningsIT()
                             throws Exception
Throws:
Exception

testViewHelp

protected void testViewHelp()
                     throws Exception
Test the tooltip and external help on the view

Throws:
Exception

testViewHelp2

protected void testViewHelp2()
                      throws Exception
Test the tooltip and external help on the view

Throws:
Exception

testVerifyAddDeleteFiscalOfficerLegacy

protected void testVerifyAddDeleteFiscalOfficerLegacy()
                                               throws Exception
Throws:
Exception

testVerifyAddDeleteNoteLegacy

protected void testVerifyAddDeleteNoteLegacy()
                                      throws Exception
Throws:
Exception

testVerifyAdHocRecipientsLegacy

protected void testVerifyAdHocRecipientsLegacy()
                                        throws Exception
Throws:
Exception

testVerifyButtonsLegacy

protected void testVerifyButtonsLegacy()
                                throws Exception
Throws:
Exception

testVerifyConstraintText

protected void testVerifyConstraintText()
                                 throws Exception
Throws:
Exception

testVerifyEditedComponent

protected void testVerifyEditedComponent(String docId,
                                         String componentName,
                                         String componentCode)
                                  throws Exception
Throws:
Exception

testVerifyDisclosures

protected void testVerifyDisclosures()
                              throws Exception
Throws:
Exception

testVerifyDocumentOverviewLegacy

protected void testVerifyDocumentOverviewLegacy()
                                         throws Exception
Throws:
Exception

testVerifyExpandCollapse

protected void testVerifyExpandCollapse()
                                 throws Exception
Throws:
Exception

testVerifyFieldsLegacy

protected void testVerifyFieldsLegacy()
                               throws Exception
Throws:
Exception

testVerifyHeaderFieldsLegacy

protected void testVerifyHeaderFieldsLegacy()
                                     throws Exception
Throws:
Exception

testVerifyLookupAddMultipleLinesLegacy

protected void testVerifyLookupAddMultipleLinesLegacy()
                                               throws Exception
Throws:
Exception

testVerifyNotesAndAttachments

protected void testVerifyNotesAndAttachments()
                                      throws Exception
Throws:
Exception

testVerifyQuickfinderIconsLegacy

protected void testVerifyQuickfinderIconsLegacy()
                                         throws Exception
Throws:
Exception

testVerifyRouteLog

protected void testVerifyRouteLog()
                           throws Exception
Throws:
Exception

testVerifySave

protected void testVerifySave()
                       throws Exception
Throws:
Exception

testVerifySubsidizedPercentWatermarkLegacy

protected void testVerifySubsidizedPercentWatermarkLegacy()
                                                   throws Exception
Throws:
Exception

testWorkFlowDocTypeBlanketApprove

protected void testWorkFlowDocTypeBlanketApprove()
                                          throws Exception
Throws:
Exception

uncheck

protected void uncheck(org.openqa.selenium.By by)
                throws InterruptedException
Throws:
InterruptedException

uncheckByName

protected void uncheckByName(String name)
                      throws InterruptedException
Throws:
InterruptedException

uncheckByXpath

protected void uncheckByXpath(String locator)
                       throws InterruptedException
Throws:
InterruptedException

validateErrorImage

protected boolean validateErrorImage(boolean validateVisible)
                              throws Exception
Throws:
Exception

verifyRichMessagesValidationBasicFunctionality

protected void verifyRichMessagesValidationBasicFunctionality()
                                                       throws Exception
Throws:
Exception

verifyRichMessagesValidationAdvancedFunctionality

protected void verifyRichMessagesValidationAdvancedFunctionality()
                                                          throws Exception
Throws:
Exception

verifyRichMessagesValidationLettersNumbersValidation

protected void verifyRichMessagesValidationLettersNumbersValidation()
                                                             throws Exception
Throws:
Exception

verifyRichMessagesValidationRadioAndCheckBoxGroupFunctionality

protected void verifyRichMessagesValidationRadioAndCheckBoxGroupFunctionality()
                                                                       throws Exception
Throws:
Exception

verifyRichMessagesValidationLinkDeclarationsFunctionality

protected void verifyRichMessagesValidationLinkDeclarationsFunctionality()
                                                                  throws Exception
Throws:
Exception

waitAndClickAdministration

protected void waitAndClickAdministration(Failable failable)
                                   throws InterruptedException
ADMINISTRATION_LINK_TEXT

Parameters:
failable -
Throws:
InterruptedException

waitAndCancelConfirmation

protected void waitAndCancelConfirmation()
                                  throws InterruptedException
Throws:
InterruptedException

waitAndClick

protected void waitAndClick(org.openqa.selenium.By by)
                     throws InterruptedException
Throws:
InterruptedException

waitAndClick

protected void waitAndClick(org.openqa.selenium.By by,
                            Failable failable)
                     throws InterruptedException
Throws:
InterruptedException

waitAndClick

protected void waitAndClick(String locator,
                            String message)
                     throws InterruptedException
Throws:
InterruptedException

waitAndClickById

protected void waitAndClickById(String id)
                         throws InterruptedException
Throws:
InterruptedException

waitAndClickById

protected void waitAndClickById(String id,
                                String message)
                         throws InterruptedException
Throws:
InterruptedException

waitAndClickByLinkText

protected void waitAndClickByLinkText(String text)
                               throws InterruptedException
Throws:
InterruptedException

waitAndClickByLinkText

protected void waitAndClickByLinkText(String text,
                                      String message)
                               throws InterruptedException
Throws:
InterruptedException

waitAndClickByLinkText

protected void waitAndClickByLinkText(String text,
                                      Failable failable)
                               throws InterruptedException
Throws:
InterruptedException

waitAndClickByLinkText

protected void waitAndClickByLinkText(String text,
                                      String message,
                                      Failable failable)
                               throws InterruptedException
Throws:
InterruptedException

waitAndClickByName

protected void waitAndClickByName(String name)
                           throws InterruptedException
Throws:
InterruptedException

waitAndClickByXpath

protected void waitAndClickByXpath(String xpath)
                            throws InterruptedException
Throws:
InterruptedException

waitAndClickByXpath

protected void waitAndClickByXpath(String xpath,
                                   Failable failable)
                            throws InterruptedException
Throws:
InterruptedException

waitAndClickByName

protected void waitAndClickByName(String name,
                                  String message)
                           throws InterruptedException
Throws:
InterruptedException

waitAndClickByXpath

protected void waitAndClickByXpath(String xpath,
                                   String message)
                            throws InterruptedException
Throws:
InterruptedException

waitAndClickButtonByText

protected void waitAndClickButtonByText(String buttonText)
                                 throws InterruptedException
Throws:
InterruptedException

waitAndClickButtonByText

protected void waitAndClickButtonByText(String buttonText,
                                        String message)
                                 throws InterruptedException
Throws:
InterruptedException

waitAndClickCancel

protected void waitAndClickCancel()
                           throws InterruptedException
CANCEL_NAME

Throws:
InterruptedException

waitAndClickCloseWindow

protected void waitAndClickCloseWindow()
                                throws InterruptedException
CLOSE_WINDOW_XPATH_TITLE

Throws:
InterruptedException

waitAndClickCopy

protected void waitAndClickCopy()
                         throws InterruptedException
COPY_LINK_TEXT

Throws:
InterruptedException

waitAndClickDocSearch

protected void waitAndClickDocSearch()
                              throws InterruptedException
{}@link #DOC_SEARCH_XPATH}

Throws:
InterruptedException

waitAndClickDocSearchTitle

protected void waitAndClickDocSearchTitle()
                                   throws InterruptedException
DOC_SEARCH_XPATH_TITLE

Throws:
InterruptedException

waitAndClickLogout

protected void waitAndClickLogout()
                           throws InterruptedException
LOGOUT_XPATH

Throws:
InterruptedException

waitAndClickLogout

protected void waitAndClickLogout(Failable failable)
                           throws InterruptedException
LOGOUT_XPATH

Parameters:
failable -
Throws:
InterruptedException

waitAndClickMainMenu

protected void waitAndClickMainMenu(Failable failable)
                             throws InterruptedException
{}@link #MAIN_MENU_LINK_TEXT}

Parameters:
failable -
Throws:
InterruptedException

waitAndClickSave

protected void waitAndClickSave()
                         throws InterruptedException
SAVE_XPATH

Throws:
InterruptedException

waitAndClickSearch

protected void waitAndClickSearch()
                           throws InterruptedException
SEARCH_XPATH

Throws:
InterruptedException

waitAndClickSubmit

protected void waitAndClickSubmit()
                           throws InterruptedException
SUBMIT_XPATH

Throws:
InterruptedException

waitAndClickXMLIngester

protected void waitAndClickXMLIngester(Failable failable)
                                throws InterruptedException
XML_INGESTER_LINK_TEXT

Parameters:
failable -
Throws:
InterruptedException

waitAndSelectByName

protected void waitAndSelectByName(String name,
                                   String selectText)
                            throws InterruptedException
Throws:
InterruptedException

waitAndType

protected void waitAndType(org.openqa.selenium.By by,
                           String text)
                    throws InterruptedException
Throws:
InterruptedException

waitAndType

protected void waitAndType(org.openqa.selenium.By by,
                           String text,
                           String message)
                    throws InterruptedException
Throws:
InterruptedException

waitAndType

protected void waitAndType(String selector,
                           String text)
                    throws InterruptedException
Throws:
InterruptedException

waitAndTypeById

protected void waitAndTypeById(String id,
                               String text)
                        throws InterruptedException
Throws:
InterruptedException

waitAndTypeByXpath

protected void waitAndTypeByXpath(String locator,
                                  String text)
                           throws InterruptedException
Throws:
InterruptedException

waitAndTypeByXpath

protected void waitAndTypeByXpath(String locator,
                                  String text,
                                  String message)
                           throws InterruptedException
Throws:
InterruptedException

waitAndTypeByName

protected void waitAndTypeByName(String name,
                                 String text)
                          throws InterruptedException
Throws:
InterruptedException

waitAndCreateNew

protected void waitAndCreateNew()
                         throws InterruptedException
Throws:
InterruptedException

waitAndClickCreateNew

protected void waitAndClickCreateNew()
                              throws InterruptedException
CREATE_NEW_XPATH

Throws:
InterruptedException

waitAndClickEdit

protected void waitAndClickEdit()
                         throws InterruptedException
Throws:
InterruptedException

waitAndClickReturnValue

protected void waitAndClickReturnValue()
                                throws InterruptedException
Throws:
InterruptedException

waitAndClickSearch2

protected void waitAndClickSearch2()
                            throws InterruptedException
Throws:
InterruptedException

waitAndClickSearch3

protected void waitAndClickSearch3()
                            throws InterruptedException
Throws:
InterruptedException

waitForDocId

protected String waitForDocId()
                       throws InterruptedException
Throws:
InterruptedException

waitForElementPresent

protected org.openqa.selenium.WebElement waitForElementPresent(org.openqa.selenium.By by)
                                                        throws InterruptedException
Throws:
InterruptedException

waitForElementPresent

protected org.openqa.selenium.WebElement waitForElementPresent(org.openqa.selenium.By by,
                                                               String message)
                                                        throws InterruptedException
Throws:
InterruptedException

waitForElementPresent

protected org.openqa.selenium.WebElement waitForElementPresent(String locator)
                                                        throws InterruptedException
Throws:
InterruptedException

waitForElementPresentByClassName

protected org.openqa.selenium.WebElement waitForElementPresentByClassName(String name)
                                                                   throws InterruptedException
Throws:
InterruptedException

waitForElementPresentByClassName

protected org.openqa.selenium.WebElement waitForElementPresentByClassName(String name,
                                                                          String message)
                                                                   throws InterruptedException
Throws:
InterruptedException

waitForElementsPresentByClassName

protected void waitForElementsPresentByClassName(String name,
                                                 String message)
                                          throws InterruptedException
Throws:
InterruptedException

waitForElementPresentById

protected org.openqa.selenium.WebElement waitForElementPresentById(String id)
                                                            throws InterruptedException
Throws:
InterruptedException

waitForElementPresentById

protected void waitForElementPresentById(String id,
                                         String message)
                                  throws InterruptedException
Throws:
InterruptedException

waitForElementsPresentById

protected void waitForElementsPresentById(String id,
                                          String message)
                                   throws InterruptedException
Throws:
InterruptedException

waitForElementPresentByName

protected org.openqa.selenium.WebElement waitForElementPresentByName(String name)
                                                              throws InterruptedException
Throws:
InterruptedException

waitForElementPresentByXpath

protected org.openqa.selenium.WebElement waitForElementPresentByXpath(String xpath)
                                                               throws InterruptedException
Throws:
InterruptedException

waitForElementPresentByXpath

protected org.openqa.selenium.WebElement waitForElementPresentByXpath(String xpath,
                                                                      String message)
                                                               throws InterruptedException
Throws:
InterruptedException

waitForElementsPresentByXpath

protected void waitForElementsPresentByXpath(String xpathLocator)
                                      throws InterruptedException
Throws:
InterruptedException

waitForTitleToEqualKualiPortalIndex

protected void waitForTitleToEqualKualiPortalIndex()
                                            throws InterruptedException
Throws:
InterruptedException

waitIsVisible

protected void waitIsVisible(org.openqa.selenium.By by)
                      throws InterruptedException
Throws:
InterruptedException

waitIsVisible

protected void waitIsVisible(org.openqa.selenium.By by,
                             String message)
                      throws InterruptedException
Throws:
InterruptedException

waitAreAnyVisible

protected boolean waitAreAnyVisible(org.openqa.selenium.By[] bys)
                             throws InterruptedException
Throws:
InterruptedException

isVisible

protected boolean isVisible(org.openqa.selenium.By[] bys)

waitForElementVisible

protected void waitForElementVisible(String elementLocator,
                                     String message)
                              throws InterruptedException
Uses Selenium's findElements method which does not throw a test exception if not found.

Parameters:
elementLocator -
message -
Throws:
InterruptedException

waitForElementVisibleBy

protected void waitForElementVisibleBy(org.openqa.selenium.By by,
                                       String message)
                                throws InterruptedException
Throws:
InterruptedException

waitForElementVisibleById

protected void waitForElementVisibleById(String id,
                                         String message)
                                  throws InterruptedException
Throws:
InterruptedException

waitIsVisible

protected void waitIsVisible(String locator)
                      throws InterruptedException
Throws:
InterruptedException

waitIsVisibleByXpath

protected void waitIsVisibleByXpath(String locator)
                             throws InterruptedException
Throws:
InterruptedException

waitIsVisibleByXpath

protected void waitIsVisibleByXpath(String locator,
                                    String message)
                             throws InterruptedException
Throws:
InterruptedException

waitForTitleToEqualKualiPortalIndex

protected void waitForTitleToEqualKualiPortalIndex(String message)
                                            throws InterruptedException
Throws:
InterruptedException

waitAndClick

protected void waitAndClick(String locator)
                     throws InterruptedException
Throws:
InterruptedException

waitForPageToLoad

protected void waitForPageToLoad()
                          throws InterruptedException
Throws:
InterruptedException

waitFor

protected org.openqa.selenium.WebElement waitFor(org.openqa.selenium.By by)
                                          throws InterruptedException
Throws:
InterruptedException

waitFor

protected void waitFor(org.openqa.selenium.By by,
                       String message)
                throws InterruptedException
Should be called from jiraAwareWaitFor to get KULRICE error output in CI. Inner most waitFor, let it throw the failure so the timeout message reflects the waitSeconds time, not the 1 second it is set to before returning.

Parameters:
by -
message -
Throws:
InterruptedException

waitAndClickKRAD

protected void waitAndClickKRAD()
                         throws InterruptedException
KRAD_XPATH

Throws:
InterruptedException

waitNotVisible

protected void waitNotVisible(org.openqa.selenium.By by)
                       throws InterruptedException
Throws:
InterruptedException

waitNotVisibleByXpath

protected void waitNotVisibleByXpath(String locator)
                              throws InterruptedException
Throws:
InterruptedException

isKrad

protected boolean isKrad()
Does the test page use KRAD UIF? Useful if trying to re-use a test for both a KNS and KRAD screens that have different paths to the elements.

Returns:

getElementByDataAttributeValue

protected org.openqa.selenium.WebElement getElementByDataAttributeValue(String dataAttributeName,
                                                                        String value)

getElementByDataAttribute

protected org.openqa.selenium.WebElement getElementByDataAttribute(String dataAttributeName)

getElementByAttributeValue

protected org.openqa.selenium.WebElement getElementByAttributeValue(String attributeName,
                                                                    String value)

getElementByAttribute

protected org.openqa.selenium.WebElement getElementByAttribute(String attributeName)

getForLabelText

protected String getForLabelText(String forElementId)
Returns the label text of a label-for element

For usage with elements like this:

Parameters:
forElementId - the id of the element for which to find the label text
Returns:
label text

getUiFramework

public String getUiFramework()
Determines whether KRAD or KNS UIF is used for this test. Useful if trying to re-use a test for both a KNS and KRAD screens that have different paths to the elements.

Returns:

setUiFramework

public void setUiFramework(String uiFramework)
Sets which UIF is used by this test



Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.