| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.samplu.common.WebDriverLegacyITBase
public abstract class WebDriverLegacyITBase
Class to upgrade UpgradedSeleniumITBase tests to WebDriver.
| Field Summary | |
|---|---|
| static int | DEFAULT_WAIT_SECDeprecated. | 
| protected  org.openqa.selenium.WebDriver | driverDeprecated. | 
| protected  boolean | passedDeprecated. | 
| static String | REMOTE_PUBLIC_USERPOOL_PROPERTYDeprecated. | 
|  org.junit.rules.TestName | testNameDeprecated. | 
| protected  String | userDeprecated. | 
| Constructor Summary | |
|---|---|
| WebDriverLegacyITBase()Deprecated. | |
| Method Summary | |
|---|---|
| protected  void | assertElementPresent(String locator)Deprecated. | 
| protected  void | assertElementPresentByName(String name)Deprecated. | 
| protected  void | assertElementPresentByName(String name,
                                                     String message)Deprecated. | 
| protected  void | assertElementPresentByXpath(String locator)Deprecated. | 
| protected  void | assertElementPresentByXpath(String locator,
                                                       String message)Deprecated. | 
| protected  void | assertTextPresent(String text)Deprecated. | 
| protected  void | assertTextPresent(String text,
                                   String message)Deprecated. | 
| protected  void | blanketApproveTest()Deprecated. | 
| protected  void | checkErrorMessageItem(String message)Deprecated. | 
| protected  void | checkForIncidentReport()Deprecated. | 
| protected  void | checkForIncidentReport(String locator)Deprecated. | 
| protected  void | checkForIncidentReport(String locator,
                                             String message)Deprecated. | 
| protected  void | colapseExpandByXpath(String clickLocator,
                                         String visibleLocator)Deprecated. | 
| static void | createAndStartService()Deprecated. | 
| protected  void | expandColapseByXpath(String clickLocator,
                                         String visibleLocator)Deprecated. | 
| protected  String | getAttribute(org.openqa.selenium.By by,
                         String attribute)Deprecated. | 
| protected  String | getAttributeByName(String name,
                                     String attribute)Deprecated. Get value of any attribute by using element name | 
| protected  String | getAttributeByXpath(String locator,
                                       String attribute)Deprecated. Get value of any attribute by using element xpath | 
| protected  String | getBaseUrlString()Deprecated. | 
| protected  int | getCssCount(org.openqa.selenium.By by)Deprecated. | 
| protected  int | getCssCount(String selector)Deprecated. | 
| protected  String | getHTML(String urlToRead)Deprecated. | 
| protected  String[] | getSelectOptions(org.openqa.selenium.By by)Deprecated. | 
| protected  String[] | getSelectOptionsByName(String name)Deprecated. | 
| protected  String[] | getSelectOptionsByXpath(String locator)Deprecated. | 
|  String | getSessionId()Deprecated. | 
| abstract  String | getTestUrl()Deprecated. | 
| protected  String | getText(org.openqa.selenium.By by)Deprecated. | 
| protected  String | getText(String locator)Deprecated. | 
| protected  String | getTextByName(String name)Deprecated. | 
| protected  String | getTextByXpath(String locator)Deprecated. | 
| protected  String | getTitle()Deprecated. | 
|  String | getUserName()Deprecated. Override in test to define a user other than admin | 
| protected  boolean | isElementPresent(org.openqa.selenium.By by)Deprecated. | 
| protected  boolean | isElementPresentByName(String name)Deprecated. | 
| protected  boolean | isElementPresentByXpath(String locator)Deprecated. | 
| protected  boolean | isVisible(org.openqa.selenium.By by)Deprecated. | 
| protected  boolean | isVisibleByXpath(String locator)Deprecated. | 
| protected  void | open(String url)Deprecated. | 
| protected  void | passed()Deprecated. | 
| protected  void | select(org.openqa.selenium.By by,
             String select)Deprecated. | 
| protected  void | selectByName(String name,
                         String select)Deprecated. | 
| protected  void | selectByXpath(String locator,
                           String select)Deprecated. | 
| protected  void | selectFrame(String locator)Deprecated. | 
| protected  void | selectTopFrame()Deprecated. | 
| protected  void | selectWindow(String locator)Deprecated. | 
|  void | setUp()Deprecated. Setup the WebDriver test, login and load the tested web page | 
|  void | tearDown()Deprecated. | 
| protected  void | waitAndClick(org.openqa.selenium.By by)Deprecated. | 
| protected  void | waitAndClick(org.openqa.selenium.By by,
                         String message)Deprecated. | 
| protected  void | waitAndClick(String locator)Deprecated. | 
| protected  void | waitAndClick(String locator,
                         String message)Deprecated. | 
| protected  void | waitAndClickByLinkText(String text)Deprecated. | 
| protected  void | waitAndClickByLinkText(String text,
                                             String message)Deprecated. | 
| protected  void | waitAndClickByName(String name)Deprecated. | 
| protected  void | waitAndClickByName(String name,
                                     String message)Deprecated. | 
| protected  void | waitAndClickByXpath(String xpath)Deprecated. | 
| protected  void | waitAndClickByXpath(String xpath,
                                       String message)Deprecated. | 
| protected  void | waitAndType(org.openqa.selenium.By by,
                       String text)Deprecated. | 
| protected  void | waitAndType(org.openqa.selenium.By by,
                       String text,
                       String message)Deprecated. | 
| protected  void | waitAndTypeByName(String name,
                                   String text)Deprecated. | 
| protected  void | waitAndTypeByXpath(String locator,
                                     String text)Deprecated. | 
| protected  void | waitAndTypeByXpath(String locator,
                                     String text,
                                     String message)Deprecated. | 
| protected  void | waitFor(org.openqa.selenium.By by)Deprecated. | 
| protected  void | waitFor(org.openqa.selenium.By by,
               String message)Deprecated. | 
| protected  String | waitForDocId()Deprecated. | 
| protected  void | waitForElementPresent(String locator)Deprecated. | 
| protected  void | waitForElementPresentByName(String name)Deprecated. | 
| protected  void | waitForElementPresentByXpath(String locator)Deprecated. | 
| protected  void | waitForPageToLoad()Deprecated. | 
| protected  void | waitForTitleToEqualKualiPortalIndex()Deprecated. | 
| protected  void | waitForTitleToEqualKualiPortalIndex(String message)Deprecated. | 
| protected  void | waitIsVisibleByXpath(String locator)Deprecated. | 
| protected  void | waitNotVisibleByXpath(String locator)Deprecated. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final int DEFAULT_WAIT_SEC
public static final String REMOTE_PUBLIC_USERPOOL_PROPERTY
protected org.openqa.selenium.WebDriver driver
protected String user
protected boolean passed
public org.junit.rules.TestName testName
| Constructor Detail | 
|---|
public WebDriverLegacyITBase()
| Method Detail | 
|---|
public abstract String getTestUrl()
public String getSessionId()
public static void createAndStartService()
                                  throws Exception
Exception
public void setUp()
           throws Exception
Exception
public void tearDown()
              throws Exception
Exceptionprotected String getHTML(String urlToRead)
protected void passed()
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 assertElementPresent(String locator)
protected void assertTextPresent(String text)
protected void assertTextPresent(String text,
                                 String message)
protected void blanketApproveTest()
                           throws InterruptedException
InterruptedExceptionprotected void checkForIncidentReport()
protected void checkForIncidentReport(String locator)
protected void checkForIncidentReport(String locator,
                                      String message)
protected String getAttribute(org.openqa.selenium.By by,
                              String attribute)
                       throws InterruptedException
InterruptedException
protected String getAttributeByName(String name,
                                    String attribute)
                             throws InterruptedException
name - name of an elementattribute - the name of an attribute whose value is to be retrieved
InterruptedException
protected String getAttributeByXpath(String locator,
                                     String attribute)
                              throws InterruptedException
locator - locating mechanism of an elementattribute - the name of an attribute whose value is to be retrieved
InterruptedExceptionprotected String getBaseUrlString()
protected String getText(org.openqa.selenium.By by)
                  throws InterruptedException
InterruptedException
protected String getTextByName(String name)
                        throws InterruptedException
InterruptedException
protected String getText(String locator)
                  throws InterruptedException
InterruptedException
protected String getTextByXpath(String locator)
                         throws InterruptedException
InterruptedExceptionprotected String getTitle()
public String getUserName()
protected boolean isElementPresent(org.openqa.selenium.By by)
protected boolean isElementPresentByName(String name)
protected boolean isElementPresentByXpath(String locator)
protected void open(String url)
protected void selectFrame(String locator)
protected void selectTopFrame()
protected void selectWindow(String locator)
protected String waitForDocId()
                       throws InterruptedException
InterruptedException
protected void waitForElementPresent(String locator)
                              throws InterruptedException
InterruptedException
protected void waitForElementPresentByXpath(String locator)
                                     throws InterruptedException
InterruptedException
protected void waitForElementPresentByName(String name)
                                    throws InterruptedException
InterruptedException
protected void waitForTitleToEqualKualiPortalIndex()
                                            throws InterruptedException
InterruptedException
protected void waitForTitleToEqualKualiPortalIndex(String message)
                                            throws InterruptedException
InterruptedException
protected void waitAndClick(String locator)
                     throws InterruptedException
InterruptedExceptionprotected void waitForPageToLoad()
protected void waitFor(org.openqa.selenium.By by)
                throws InterruptedException
InterruptedException
protected void waitFor(org.openqa.selenium.By by,
                       String message)
                throws InterruptedException
InterruptedException
protected void waitAndClick(org.openqa.selenium.By by)
                     throws InterruptedException
InterruptedException
protected void waitAndClick(org.openqa.selenium.By by,
                            String message)
                     throws InterruptedException
InterruptedException
protected void waitAndClick(String locator,
                            String message)
                     throws InterruptedException
InterruptedException
protected void waitAndClickByLinkText(String text)
                               throws InterruptedException
InterruptedException
protected void waitAndClickByLinkText(String text,
                                      String message)
                               throws InterruptedException
InterruptedException
protected void waitAndClickByName(String name)
                           throws InterruptedException
InterruptedException
protected void waitAndClickByXpath(String xpath)
                            throws InterruptedException
InterruptedException
protected void waitAndClickByName(String name,
                                  String message)
                           throws InterruptedException
InterruptedException
protected void waitAndClickByXpath(String xpath,
                                   String message)
                            throws InterruptedException
InterruptedException
protected void waitAndType(org.openqa.selenium.By by,
                           String text)
                    throws InterruptedException
InterruptedException
protected void waitAndType(org.openqa.selenium.By by,
                           String text,
                           String message)
                    throws InterruptedException
InterruptedException
protected void waitAndTypeByXpath(String locator,
                                  String text)
                           throws InterruptedException
InterruptedException
protected void waitAndTypeByXpath(String locator,
                                  String text,
                                  String message)
                           throws InterruptedException
InterruptedException
protected void waitAndTypeByName(String name,
                                 String text)
                          throws InterruptedException
InterruptedException
protected void selectByXpath(String locator,
                             String select)
                      throws InterruptedException
InterruptedException
protected void selectByName(String name,
                            String select)
                     throws InterruptedException
InterruptedException
protected void select(org.openqa.selenium.By by,
                      String select)
               throws InterruptedException
InterruptedException
protected String[] getSelectOptions(org.openqa.selenium.By by)
                             throws InterruptedException
InterruptedException
protected String[] getSelectOptionsByName(String name)
                                   throws InterruptedException
InterruptedException
protected String[] getSelectOptionsByXpath(String locator)
                                    throws InterruptedException
InterruptedExceptionprotected int getCssCount(String selector)
protected int getCssCount(org.openqa.selenium.By by)
protected void checkErrorMessageItem(String message)
protected boolean isVisibleByXpath(String locator)
protected boolean isVisible(org.openqa.selenium.By by)
protected void waitNotVisibleByXpath(String locator)
                              throws InterruptedException
InterruptedException
protected void waitIsVisibleByXpath(String locator)
                             throws InterruptedException
InterruptedException
protected void colapseExpandByXpath(String clickLocator,
                                    String visibleLocator)
                             throws InterruptedException
InterruptedException
protected void expandColapseByXpath(String clickLocator,
                                    String visibleLocator)
                             throws InterruptedException
InterruptedException| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||