public class ClientProperties
extends java.lang.Object
| Constructor and Description |
|---|
ClientProperties(java.lang.String filePath)
Constructs a
ClientProperties from the given file. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAcceptedLanguages() |
int |
getAppearWaitTime()
Returns the maximum wait time for elements to appear.
|
java.lang.String |
getBrowser()
Returns the name of the browser.
|
int |
getBrowserInitPositionX()
Returns the initial horizontal offset of the browser window.
|
int |
getBrowserInitPositionY()
Returns the initial vertical offset of the browser window.
|
java.lang.String |
getBrowserVersion()
Returns the version of the browser.
|
java.lang.String |
getChromeBinaryPath()
Returns the path to the Chrome executable binary.
|
java.net.URL |
getClient()
Returns the URL represented by this
ClientProperties. |
boolean |
getDebugMode()
Returns whether debug mode is enabled.
|
java.lang.String |
getDownloadFolder()
Returns the directory for downloads.
|
java.lang.String |
getFfBinaryPath()
Returns the path to the Firefox executable binary.
|
java.util.List<java.lang.String> |
getFirefoxExtensions()
Returns a
List of Firefox extensions. |
java.lang.String |
getFirefoxProfileFile()
Returns the path to the Firefox profile.
|
java.lang.String |
getFirefoxProfileFolder()
Returns the name of the browser.
|
java.lang.String |
getGridPlatform()
Returns the Selenium Grid platform.
|
java.lang.String |
getGridProperties()
Returns the Selenium Grid properties.
|
java.lang.String |
getGridUrl()
Returns the Saucelabs URL.
|
java.lang.String |
getHighlightColor(java.lang.String colorMode) |
java.util.Map<java.lang.String,java.lang.String> |
getHighlightColorMap() |
java.lang.String |
getMaxAllowedSessions()
Returns the maximum allowed number of sessions.
|
int |
getMaxDownloadWaitTime()
Returns the maximum wait time for downloads.
|
int |
getMaxPageWait()
Returns the maximum wait time for pages.
|
int |
getMaxRequestTimeout()
Returns the maximum time out for requests as an
int. |
java.lang.String |
getMaxRequestTimeoutString()
Returns the maximum timeout for requests as a
String. |
int |
getNumberOfDaysToKeepTempFolders()
Returns the number of days temporary folders are kept.
|
java.lang.String |
getOS()
Returns the name of the operating system.
|
java.lang.String |
getOSVersion()
Returns the version of the operating system.
|
java.lang.String |
getProxy()
Returns the proxy.
|
java.lang.String |
getProxyHttps()
Returns the HTTPS proxy.
|
java.lang.String |
getTempFolderNameContainsList()
Returns the list of folder names to be cleaned with the temp folders.
|
java.lang.String |
getUploadFolder()
Returns the directory for uploads.
|
java.lang.String |
getWebDriverChromeDriver()
Returns the path to chromedriver.exe.
|
java.lang.String |
getWebDriverIEDriver()
Returns the path to IEDriverServer.exe.
|
java.lang.String |
getWebDriverPhantomJSDriver()
Returns the path to phantomjs.exe.
|
boolean |
isHighlight()
Returns whether elements will be highlighted during execution.
|
boolean |
isKillTasksAtStartup()
Returns whether running driver services are killed at the beginning of
execution.
|
boolean |
isUseGrid()
Returns whether Selenium Grid or Saucelabs will be used.
|
boolean |
shouldSelectLastFrame()
Returns whther the last frame will be automatically selected.
|
public ClientProperties(java.lang.String filePath)
ClientProperties from the given file.filePath - the file to be loadedpublic java.lang.String getHighlightColor(java.lang.String colorMode)
public java.util.Map<java.lang.String,java.lang.String> getHighlightColorMap()
public final java.lang.String getBrowser()
public final java.lang.String getBrowserVersion()
public final java.lang.String getAcceptedLanguages()
public final java.lang.String getProxy()
public final java.lang.String getOS()
public final java.lang.String getOSVersion()
public final int getMaxDownloadWaitTime()
public final java.lang.String getDownloadFolder()
public final java.lang.String getUploadFolder()
public final java.lang.String getMaxRequestTimeoutString()
String.Stringpublic final int getMaxRequestTimeout()
int.intpublic int getMaxPageWait()
public int getAppearWaitTime()
public java.lang.String getMaxAllowedSessions()
public java.lang.String getFfBinaryPath()
public java.lang.String getChromeBinaryPath()
public java.lang.String getWebDriverIEDriver()
public java.lang.String getWebDriverChromeDriver()
public java.lang.String getWebDriverPhantomJSDriver()
public java.lang.String getFirefoxProfileFolder()
public java.lang.String getFirefoxProfileFile()
public boolean isHighlight()
true if and only if elements will be highlighted during
executionpublic java.util.List<java.lang.String> getFirefoxExtensions()
List of Firefox extensions.List of Firefox extensionspublic int getNumberOfDaysToKeepTempFolders()
public java.lang.String getTempFolderNameContainsList()
public boolean getDebugMode()
true if and only if debug mode is enabledpublic boolean isKillTasksAtStartup()
true if and only if running driver services are killed at
the beginning of executionpublic boolean shouldSelectLastFrame()
true if and only if the last frame will be automatically
selectedpublic boolean isUseGrid()
true if and only if Selenium Grid or Saucelabs will be
usedpublic java.lang.String getGridPlatform()
public java.lang.String getGridProperties()
public java.lang.String getGridUrl()
public java.lang.String getProxyHttps()
public int getBrowserInitPositionX()
public int getBrowserInitPositionY()
public java.net.URL getClient()
ClientProperties.ClientPropertiesCopyright © 2017 PPI AG. All rights reserved.