|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.unitils.selenium.WebDriverModule
public class WebDriverModule
| Field Summary | |
|---|---|
protected static java.lang.String |
BASE_URL_KEY
|
protected static java.lang.String |
BROWSER_NAME_KEY
|
protected static java.lang.String |
DOWNLOADPATH
|
protected static java.lang.String |
FILETYPE
|
protected static java.lang.String |
LIST_AUTOMATICALLY_DOWNLOAD
|
protected static java.lang.String |
PACKAGENAME
|
protected static java.lang.String |
PROXY_HOST_KEY
|
| Constructor Summary | |
|---|---|
WebDriverModule()
|
|
| Method Summary | |
|---|---|
void |
afterInit()
|
protected java.lang.Object |
getElement(org.openqa.selenium.WebDriver webdriver,
java.lang.Class<?> type)
This is the actual method that creates an object of the correct type and initialises all the elements. |
org.unitils.core.TestListener |
getTestListener()
|
void |
init(java.util.Properties configuration)
|
void |
initBaseUrl(java.lang.Object testObject)
All the elements with the @BaseUrlString will be initialised with the base url value of the unitils.properties. |
void |
initElements(java.lang.Object testObject)
Searches all the fields with the WebPage annotation and sets the correct elements. |
void |
initWebDriver(java.lang.Object testObject)
Initialises the webdriver. |
protected void |
killWebDriver(java.lang.Object testObject)
All the webdrivers (all the fields with the TestWebDriver of the testObject will be killed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String PACKAGENAME
protected static final java.lang.String BROWSER_NAME_KEY
protected static final java.lang.String BASE_URL_KEY
protected static final java.lang.String PROXY_HOST_KEY
protected static final java.lang.String DOWNLOADPATH
protected static final java.lang.String FILETYPE
protected static final java.lang.String LIST_AUTOMATICALLY_DOWNLOAD
| Constructor Detail |
|---|
public WebDriverModule()
| Method Detail |
|---|
public void init(java.util.Properties configuration)
init in interface org.unitils.core.Modulepublic void afterInit()
afterInit in interface org.unitils.core.Modulepublic void initWebDriver(java.lang.Object testObject)
TestWebDriver
and uses the browser choice (in unitils.properties) to create the driver.
testObject - protected void killWebDriver(java.lang.Object testObject)
TestWebDriver of the testObject will be killed.
testObject - public void initBaseUrl(java.lang.Object testObject)
testObject - public void initElements(java.lang.Object testObject)
WebPage annotation and sets the correct elements.
testObject -
protected java.lang.Object getElement(org.openqa.selenium.WebDriver webdriver,
java.lang.Class<?> type)
webdriver - type -
Objectpublic org.unitils.core.TestListener getTestListener()
getTestListener in interface org.unitils.core.Module
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||