|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.samplu.common.WebDriverLegacyITBase
public abstract class WebDriverLegacyITBase
Class to upgrade UpgradedSeleniumITBase tests to WebDriver.
Field Summary | |
---|---|
static int |
DEFAULT_WAIT_SEC
Deprecated. |
protected org.openqa.selenium.WebDriver |
driver
Deprecated. |
protected boolean |
passed
Deprecated. |
static String |
REMOTE_PUBLIC_USER_PROPERTY
Deprecated. |
static String |
REMOTE_PUBLIC_USERPOOL_PROPERTY
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 |
check(org.openqa.selenium.By by)
Deprecated. |
protected void |
checkByName(String name)
Deprecated. |
protected void |
checkByXpath(String locator)
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 void |
fireEvent(String name,
String value,
String event)
Deprecated. |
void |
fireMouseOverEvent(org.openqa.selenium.By by)
Deprecated. |
void |
fireMouseOverEventByName(String name)
Deprecated. |
void |
fireMouseOverEventByXpath(String locator)
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 |
isElementPresent(String locator)
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 |
switchToWindow(String title)
Deprecated. |
void |
tearDown()
Deprecated. |
protected void |
uncheck(org.openqa.selenium.By by)
Deprecated. |
protected void |
uncheckByName(String name)
Deprecated. |
protected void |
uncheckByXpath(String locator)
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 |
waitForElementVisible(String elementLocator,
String message)
Deprecated. |
protected void |
waitForPageToLoad()
Deprecated. |
protected void |
waitForTitleToEqualKualiPortalIndex()
Deprecated. |
protected void |
waitForTitleToEqualKualiPortalIndex(String message)
Deprecated. |
protected void |
waitIsVisible(org.openqa.selenium.By by)
Deprecated. |
protected void |
waitIsVisible(String locator)
Deprecated. |
protected void |
waitIsVisibleByXpath(String locator)
Deprecated. |
protected void |
waitNotVisible(org.openqa.selenium.By by)
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
public static final String REMOTE_PUBLIC_USER_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
Exception
protected 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
InterruptedException
protected void checkForIncidentReport()
protected void checkForIncidentReport(String locator)
protected void checkForIncidentReport(String locator, String message)
protected void clearText(org.openqa.selenium.By by) throws InterruptedException
InterruptedException
protected void clearTextByName(String name) throws InterruptedException
InterruptedException
protected void clearTextByXpath(String locator) throws InterruptedException
InterruptedException
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
InterruptedException
protected 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
InterruptedException
protected String getTitle()
public String getUserName()
protected boolean isElementPresent(org.openqa.selenium.By by)
protected boolean isElementPresent(String locator)
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
InterruptedException
protected 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
InterruptedException
protected int getCssCount(String selector)
protected int getCssCount(org.openqa.selenium.By by)
protected void checkErrorMessageItem(String message)
protected boolean isVisible(String locator)
protected boolean isVisible(org.openqa.selenium.By by)
protected boolean isVisibleByXpath(String locator)
protected void waitNotVisible(org.openqa.selenium.By by) throws InterruptedException
InterruptedException
protected void waitNotVisibleByXpath(String locator) throws InterruptedException
InterruptedException
protected void waitIsVisible(org.openqa.selenium.By by) throws InterruptedException
InterruptedException
protected void waitForElementVisible(String elementLocator, String message) throws InterruptedException
InterruptedException
protected void waitIsVisible(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
public void switchToWindow(String title)
protected void check(org.openqa.selenium.By by) throws InterruptedException
InterruptedException
protected void checkByName(String name) throws InterruptedException
InterruptedException
protected void checkByXpath(String locator) throws InterruptedException
InterruptedException
protected void uncheck(org.openqa.selenium.By by) throws InterruptedException
InterruptedException
protected void uncheckByName(String name) throws InterruptedException
InterruptedException
protected void uncheckByXpath(String locator) throws InterruptedException
InterruptedException
protected void fireEvent(String name, String event)
protected void fireEvent(String name, String value, String event)
public void fireMouseOverEventByName(String name)
public void fireMouseOverEventByXpath(String locator)
public void fireMouseOverEvent(org.openqa.selenium.By by)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |