public static final class Controller.Builder extends Object
Modifier and Type | Field and Description |
---|---|
private static String |
BASE_COMMAND_LINE_PARAMETERS
Base command line parameters.
|
private String |
buildName
Name of build for use with Selenium Browserstack.
|
private static long |
SELENIUM_ELEMENT_TIMEOUT
Waits this many seconds before timing
out Selenium findElement call.
|
private long |
seleniumElementTimeout
Waits this many seconds before timing
out Selenium findElement call.
|
private static String |
URL_PARAM_ERROR_STRING
Returns message for when first parameter is not URL, or if URL
fails validation.
|
private UrlWrapper |
urlWrapper
Contains validated URL.
|
private WebDriverWrapper |
webDriverWrapper
Provides access to Selenium web driver.
|
Modifier | Constructor and Description |
---|---|
private |
Builder()
Private constructor prevents extension.
|
Modifier and Type | Method and Description |
---|---|
Controller |
newTest()
Constructs test.
|
Controller.Builder |
setElementWait(long timeoutParam)
Waits this many seconds before timing out
Selenium findElement calls.
|
Controller.Builder |
setTargetUrl(UrlWrapper urlParam)
Sets URL to be tested.
|
Controller.Builder |
setWebDriverWrapper(WebDriverWrapper webDriverWrapperParam)
Sets webdriver wrapper for the test to use to access the Selenium server.
|
String |
toString()
Provides data contained in Builder so far.
|
private static final long SELENIUM_ELEMENT_TIMEOUT
private static final String URL_PARAM_ERROR_STRING
private static final String BASE_COMMAND_LINE_PARAMETERS
private String buildName
private long seleniumElementTimeout
private WebDriverWrapper webDriverWrapper
private UrlWrapper urlWrapper
public String toString()
public Controller.Builder setElementWait(long timeoutParam)
timeoutParam
- findElement timeout value in secondspublic Controller.Builder setWebDriverWrapper(WebDriverWrapper webDriverWrapperParam)
webDriverWrapperParam
- wrapper for Selenium WebDriver instance.public Controller.Builder setTargetUrl(UrlWrapper urlParam)
urlParam
- URL to test.public Controller newTest()
Copyright © 2018. All rights reserved.