public class JBehaveWebdriverModule
extends org.unitils.selenium.WebDriverModule
WebDriver.BASE_URL_KEY, BROWSER_NAME_KEY, CHROME_BINARY_KEY, CHROME_DRIVER_KEY, DOWNLOADPATH, FILETYPE, FIREFOX_BINARY_KEY, IE_BINARY_KEY, LIST_AUTOMATICALLY_DOWNLOAD, LOGGING_FILE_PROP, LOGGINGPROP_BROWSER, LOGGINGPROP_CLIENT, LOGGINGPROP_CONSOLE_ENABLED, LOGGINGPROP_DRIVER, LOGGINGPROP_IE, LOGGINGPROP_PERFORMANCE, LOGGINGPROP_PROFILER, LOGGINGPROP_SERVER, PACKAGENAME, PROXY_HOST_KEY, TARGETSUREFIREREPORTS| Constructor and Description |
|---|
JBehaveWebdriverModule() |
| Modifier and Type | Method and Description |
|---|---|
protected org.openqa.selenium.WebDriver |
createWebdriver()
Creates the correct
WebDriver. |
protected org.unitils.selenium.BrowserChoice |
getBrowserChoice()
getter for the browserChoice.
|
protected String |
getDownloadPath()
gettter for downloadPath.
|
Object |
getFieldValue(String nameField)
Get a specific field from the
WebDriverModule. |
String |
getFileType()
getter for the fileType.
|
protected String |
getProxyUrl()
getter for the proxyUrl.
|
protected org.openqa.selenium.WebDriver |
getWebdriver()
getter for the webdriver.
|
void |
init(Properties configuration)
Initialise the module.
|
void |
initElements(Object testObject)
Initialises all the
WebPage elements in the step. |
void |
initWebDriver(Object testObject)
This method injects the webdriver into the step.
|
protected void |
killWebDriver(Object testObject)
Kills the webdriver.
|
protected void |
nastyDoubleCheck(org.openqa.selenium.WebDriver driver)
Checks if the driver is killed.
|
afterInit, checkChromeDriver, checkFirefoxDriver, checkIEDriver, checkIfDriverIsAlreadyInSystem, checkIfDriverPropertyExistsInUnitilsProperties, copyDriverIntoNewTempFile, createLogNewDriver, getAbsoluteDownloadPath, getElement, getTestListener, initBaseUrlpublic void init(Properties configuration)
init in interface org.unitils.core.Moduleinit in class org.unitils.selenium.WebDriverModuleconfiguration - : The Unitils configuration.WebDriverModule.init(java.util.Properties)public void initWebDriver(Object testObject)
initWebDriver in class org.unitils.selenium.WebDriverModuletestObject - : the step.WebDriverModule.initWebDriver(java.lang.Object)public void initElements(Object testObject)
WebPage elements in the step.initElements in class org.unitils.selenium.WebDriverModuletestObject - : the step.WebDriverModule.initElements(java.lang.Object)protected void killWebDriver(Object testObject)
killWebDriver in class org.unitils.selenium.WebDriverModuletestObject - : the stepWebDriverModule.killWebDriver(java.lang.Object)protected void nastyDoubleCheck(org.openqa.selenium.WebDriver driver)
driver - : the WebDriver that should be killed.protected org.openqa.selenium.WebDriver createWebdriver()
WebDriver.WebDriverprotected org.unitils.selenium.BrowserChoice getBrowserChoice()
BrowserChoicepublic Object getFieldValue(String nameField)
WebDriverModule.nameField - : the name of the field of the WebDriverModule.Objectprotected org.openqa.selenium.WebDriver getWebdriver()
WebDriverCopyright © 2015. All Rights Reserved.