|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.samplu.common.WebDriverITBase
public abstract class WebDriverITBase
Base class for Selenium Webdriver integration tests
Field Summary | |
---|---|
org.openqa.selenium.WebDriver |
driver
|
Constructor Summary | |
---|---|
WebDriverITBase()
|
Method Summary | |
---|---|
void |
assertPopUpWindowUrl(org.openqa.selenium.By by,
String windowName,
String url)
Assert that clicking an element causes a popup window with a specific URL |
abstract String |
getTestUrl()
Returns the URL to be used with this test |
boolean |
isElementPresent(org.openqa.selenium.By by)
Check if an element is present |
boolean |
isElementPresentQuick(org.openqa.selenium.By by)
Quickly check if an element is present |
void |
setUp()
Setup the WebDriver test, login and load the tested web page |
void |
tearDown()
Tear down the WebDriver test |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public org.openqa.selenium.WebDriver driver
Constructor Detail |
---|
public WebDriverITBase()
Method Detail |
---|
public abstract String getTestUrl()
public void setUp() throws Exception
Exception
public void tearDown() throws Exception
Exception
public boolean isElementPresent(org.openqa.selenium.By by)
This test takes a while due to the 'implicit wait' time.
by
- The locating mechanism of the element
public boolean isElementPresentQuick(org.openqa.selenium.By by)
Just like isElementPresent(org.openqa.selenium.By)
but with a short 'implicit wait' time. Use this only
if it is guaranteed that all elements are rendered.
by
- The locating mechanism of the element
public void assertPopUpWindowUrl(org.openqa.selenium.By by, String windowName, String url)
by
- The locating mechanism of the element to be clickedwindowName
- The name of the popup windowurl
- The URL of the popup window
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |