public class ClientProperties extends Object
Constructor and Description |
---|
ClientProperties(Map<String,String> options) |
ClientProperties(String filePath)
Constructs a
ClientProperties from the given file. |
Modifier and Type | Method and Description |
---|---|
int |
getAppearWaitTime()
Returns the maximum wait time for elements to appear.
|
String |
getBinaryPath()
Returns the path to the Firefox executable binary.
|
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.
|
String |
getBrowserVersion()
Returns the version of the browser.
|
URL |
getClient()
Returns the URL represented by this
ClientProperties . |
boolean |
getDebugMode()
Returns whether debug mode is enabled.
|
String |
getDownloadFolder()
Returns the directory for downloads.
|
List<String> |
getFirefoxExtensions()
Returns a
List of Firefox extensions. |
String |
getFirefoxProfileFile()
Returns the path to the Firefox profile.
|
String |
getFirefoxProfileFolder()
Returns the name of the browser.
|
String |
getGridPlatform()
Returns the Selenium Grid platform.
|
String |
getGridProperties()
Returns the Selenium Grid properties.
|
String |
getGridSaucefile()
Returns the Selenium Grid Sauce File.
|
String |
getGridUrl()
Returns the Saucelabs URL.
|
String |
getHighlightColor(String colorMode) |
Map<String,String> |
getHighlightColorMap() |
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 . |
String |
getMaxRequestTimeoutString()
Returns the maximum timeout for requests as a
String . |
int |
getNumberOfDaysToKeepTempFolders()
Returns the number of days temporary folders are kept.
|
String |
getOS()
Returns the name of the operating system.
|
String |
getOSVersion()
Returns the version of the operating system.
|
String |
getProxy()
Returns the proxy.
|
String |
getProxyHttps()
Returns the HTTPS proxy.
|
String |
getTempFolderNameContainsList()
Returns the list of folder names to be cleaned with the temp folders.
|
String |
getTunnelIdentifier() |
String |
getUploadFolder()
Returns the directory for uploads.
|
String |
getWebDriverChromeDriver()
Returns the path to chromedriver.exe.
|
String |
getWebDriverGeckoDriver()
Returns the path to geckodriver.exe
|
String |
getWebDriverIEDriver()
Returns the path to IEDriverServer.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 |
shouldIgnoreSecurityDomains() |
boolean |
shouldSelectLastFrame()
Returns whther the last frame will be automatically selected.
|
public ClientProperties(String filePath)
ClientProperties
from the given file.filePath
- the file to be loadedpublic final String getBrowser()
public final String getBrowserVersion()
public final String getProxy()
public final String getOS()
public final String getOSVersion()
public final int getMaxDownloadWaitTime()
public final String getDownloadFolder()
public final String getUploadFolder()
public final String getMaxRequestTimeoutString()
String
.String
public final int getMaxRequestTimeout()
int
.int
public int getMaxPageWait()
public int getAppearWaitTime()
public String getMaxAllowedSessions()
public String getBinaryPath()
public String getWebDriverIEDriver()
public String getWebDriverChromeDriver()
public String getWebDriverGeckoDriver()
public String getFirefoxProfileFolder()
public String getFirefoxProfileFile()
public boolean isHighlight()
true
if and only if elements will be highlighted during
executionpublic List<String> getFirefoxExtensions()
List
of Firefox extensions.List
of Firefox extensionspublic int getNumberOfDaysToKeepTempFolders()
public 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 String getGridSaucefile()
public String getGridPlatform()
public String getGridProperties()
public String getGridUrl()
public String getProxyHttps()
public int getBrowserInitPositionX()
public int getBrowserInitPositionY()
public URL getClient()
ClientProperties
.ClientProperties
public String getTunnelIdentifier()
public boolean shouldIgnoreSecurityDomains()
Copyright © 2018. All rights reserved.