edu.samplu.common
Class WebDriverLegacyITBase

java.lang.Object
  extended by edu.samplu.common.WebDriverLegacyITBase
Direct Known Subclasses:
ConfigurationTestViewLegacyIT, InvalidUserNameIT, LoginLogoutLegacyIT, MenuLegacyITBase, UIFComponentValidationRegexPatternLegacyIT

Deprecated. Use WebDriverITBase for new tests.

public abstract class WebDriverLegacyITBase
extends Object

Class to upgrade UpgradedSeleniumITBase tests to WebDriver.

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

Field Summary
static int DEFAULT_WAIT_SEC
          Deprecated.  
protected  org.openqa.selenium.WebDriver driver
          Deprecated.  
protected  boolean passed
          Deprecated.  
static String SAUCE_KEY
          Deprecated.  
static String SAUCE_USER
          Deprecated.  
 org.junit.rules.TestName testName
          Deprecated.  
protected  String user
          Deprecated.  
 
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 clearText(org.openqa.selenium.By by)
          Deprecated.  
protected  void clearTextByName(String name)
          Deprecated.  
protected  void clearTextByXpath(String locator)
          Deprecated.  
protected  void colapseExpandByXpath(String clickLocator, String visibleLocator)
          Deprecated.  
static void createAndStartService()
          Deprecated.  
protected  void expandColapseByXpath(String clickLocator, String visibleLocator)
          Deprecated.  
protected  void fireEvent(String name, String event)
          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 isVisible(String locator)
          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

DEFAULT_WAIT_SEC

public static final int DEFAULT_WAIT_SEC
Deprecated. 
See Also:
Constant Field Values

SAUCE_USER

public static final String SAUCE_USER
Deprecated. 
See Also:
Constant Field Values

SAUCE_KEY

public static final String SAUCE_KEY
Deprecated. 
See Also:
Constant Field Values

driver

protected org.openqa.selenium.WebDriver driver
Deprecated. 

user

protected String user
Deprecated. 

passed

protected boolean passed
Deprecated. 

testName

public org.junit.rules.TestName testName
Deprecated. 
Constructor Detail

WebDriverLegacyITBase

public WebDriverLegacyITBase()
Deprecated. 
Method Detail

getTestUrl

public abstract String getTestUrl()
Deprecated. 

getSessionId

public String getSessionId()
Deprecated. 

createAndStartService

public static void createAndStartService()
                                  throws Exception
Deprecated. 
Throws:
Exception

setUp

public void setUp()
           throws Exception
Deprecated. 
Setup the WebDriver test, login and load the tested web page

Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Deprecated. 
Throws:
Exception

getHTML

protected String getHTML(String urlToRead)
Deprecated. 

passed

protected void passed()
Deprecated. 

assertElementPresentByName

protected void assertElementPresentByName(String name)
Deprecated. 

assertElementPresentByName

protected void assertElementPresentByName(String name,
                                          String message)
Deprecated. 

assertElementPresentByXpath

protected void assertElementPresentByXpath(String locator)
Deprecated. 

assertElementPresentByXpath

protected void assertElementPresentByXpath(String locator,
                                           String message)
Deprecated. 

assertElementPresent

protected void assertElementPresent(String locator)
Deprecated. 

assertTextPresent

protected void assertTextPresent(String text)
Deprecated. 

assertTextPresent

protected void assertTextPresent(String text,
                                 String message)
Deprecated. 

blanketApproveTest

protected void blanketApproveTest()
                           throws InterruptedException
Deprecated. 
Throws:
InterruptedException

checkForIncidentReport

protected void checkForIncidentReport()
Deprecated. 

checkForIncidentReport

protected void checkForIncidentReport(String locator)
Deprecated. 

checkForIncidentReport

protected void checkForIncidentReport(String locator,
                                      String message)
Deprecated. 

getAttribute

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

getAttributeByName

protected String getAttributeByName(String name,
                                    String attribute)
                             throws InterruptedException
Deprecated. 
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

getAttributeByXpath

protected String getAttributeByXpath(String locator,
                                     String attribute)
                              throws InterruptedException
Deprecated. 
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

getBaseUrlString

protected String getBaseUrlString()
Deprecated. 

getText

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

getTextByName

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

getText

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

getTextByXpath

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

getTitle

protected String getTitle()
Deprecated. 

getUserName

public String getUserName()
Deprecated. 
Override in test to define a user other than admin

Returns:

isElementPresent

protected boolean isElementPresent(org.openqa.selenium.By by)
Deprecated. 

isElementPresentByName

protected boolean isElementPresentByName(String name)
Deprecated. 

isElementPresentByXpath

protected boolean isElementPresentByXpath(String locator)
Deprecated. 

open

protected void open(String url)
Deprecated. 

selectFrame

protected void selectFrame(String locator)
Deprecated. 

selectTopFrame

protected void selectTopFrame()
Deprecated. 

selectWindow

protected void selectWindow(String locator)
Deprecated. 

waitForDocId

protected String waitForDocId()
                       throws InterruptedException
Deprecated. 
Throws:
InterruptedException

waitForElementPresent

protected void waitForElementPresent(String locator)
                              throws InterruptedException
Deprecated. 
Throws:
InterruptedException

waitForElementPresentByXpath

protected void waitForElementPresentByXpath(String locator)
                                     throws InterruptedException
Deprecated. 
Throws:
InterruptedException

waitForElementPresentByName

protected void waitForElementPresentByName(String name)
                                    throws InterruptedException
Deprecated. 
Throws:
InterruptedException

waitForTitleToEqualKualiPortalIndex

protected void waitForTitleToEqualKualiPortalIndex()
                                            throws InterruptedException
Deprecated. 
Throws:
InterruptedException

waitForTitleToEqualKualiPortalIndex

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

waitAndClick

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

waitForPageToLoad

protected void waitForPageToLoad()
Deprecated. 

waitFor

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

waitFor

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

waitAndClick

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

waitAndClick

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

waitAndClick

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

waitAndClickByLinkText

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

waitAndClickByLinkText

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

waitAndClickByName

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

waitAndClickByXpath

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

waitAndClickByName

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

waitAndClickByXpath

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

waitAndType

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

waitAndType

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

waitAndTypeByXpath

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

waitAndTypeByXpath

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

waitAndTypeByName

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

selectByXpath

protected void selectByXpath(String locator,
                             String select)
                      throws InterruptedException
Deprecated. 
Throws:
InterruptedException

selectByName

protected void selectByName(String name,
                            String select)
                     throws InterruptedException
Deprecated. 
Throws:
InterruptedException

select

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

getSelectOptions

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

getSelectOptionsByName

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

getSelectOptionsByXpath

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

getCssCount

protected int getCssCount(String selector)
Deprecated. 

getCssCount

protected int getCssCount(org.openqa.selenium.By by)
Deprecated. 

checkErrorMessageItem

protected void checkErrorMessageItem(String message)
Deprecated. 

isVisibleByXpath

protected boolean isVisibleByXpath(String locator)
Deprecated. 

isVisible

protected boolean isVisible(String locator)
Deprecated. 

isVisible

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

waitNotVisibleByXpath

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

waitIsVisibleByXpath

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

colapseExpandByXpath

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

expandColapseByXpath

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

fireEvent

protected void fireEvent(String name,
                         String event)
Deprecated. 

clearTextByName

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

clearTextByXpath

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

clearText

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


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