public class UiEngineConfigurator extends AbstractConfigurator
| Modifier and Type | Method and Description |
|---|---|
int |
getBrowserActionTimeout() |
String |
getBrowserDownloadDir() |
String |
getBrowserDownloadMimeTypes() |
org.openqa.selenium.chrome.ChromeOptions |
getChromeDriverOptions() |
int |
getCommandDelay() |
int |
getElementStateChangeDelay() |
org.openqa.selenium.firefox.FirefoxOptions |
getFirefoxDriverOptions() |
boolean |
getHighlightElements() |
static UiEngineConfigurator |
getInstance() |
String |
getMapFilesBaseDir() |
int |
getWaitPageToLoadTimeout() |
boolean |
isWorkWithInvisibleElements() |
protected void |
reloadData() |
void |
setBrowserActionTimeout(int actionTimeout)
Overwrite the timeout in seconds for waiting a browser action to finish
This method must be called before starting the browser.
|
void |
setBrowserDownloadDir(String directory)
Overwrite browser download directory (absolute path)
|
void |
setBrowserDownloadMimeTypes(String downloadMimeTypes)
Overwrite MIME types of files (comma separated) which will be automatically saved to disk by the browser
|
void |
setChromeDriverOptions(org.openqa.selenium.chrome.ChromeOptions options)
Pass options which will be applied when starting a Chrome broswer through Selenium
|
void |
setCommandDelay(int commandDelay)
Overwrite the delay between UI command
|
void |
setElementStateChangeDelay(int elementStateChangeDelay)
Overwrite the delay waiting for element's state to change or to be found
|
void |
setFirefoxDriverOptions(org.openqa.selenium.firefox.FirefoxOptions options)
Pass options which will be applied when starting a Firefox broswer through Selenium
|
void |
setHighlightElements(boolean highlightElements)
Overwrite whether will try to highlight elements
|
void |
setMapFilesBaseDir(String mapFilesBaseDir)
Overwrite the map files' root directory
|
void |
setWaitPageToLoadTimeout(int pageLoadTimeout)
Overwrite the timeout in seconds for waiting a web page to get loaded
|
void |
setWorkWithInvisibleElements(boolean workWithInvisibleElements) |
addConfigFile, addConfigFileFromClassPath, clearCustomProperties, clearTempProperties, getBooleanProperty, getCharProperty, getIntegerProperty, getLongProperty, getOptionalProperty, getProperties, getProperty, setCustomProperty, setTempPropertypublic static UiEngineConfigurator getInstance()
public String getMapFilesBaseDir()
public void setMapFilesBaseDir(String mapFilesBaseDir)
mapFilesBaseDir - the map files' root directorypublic int getCommandDelay()
public void setCommandDelay(int commandDelay)
commandDelay - the delay between UI commandpublic int getElementStateChangeDelay()
public void setElementStateChangeDelay(int elementStateChangeDelay)
elementStateChangeDelay - the delay waiting for element's state to change. In millisecondspublic boolean getHighlightElements()
public void setHighlightElements(boolean highlightElements)
highlightElements - whether will try to highlight elementspublic int getBrowserActionTimeout()
public void setBrowserActionTimeout(int actionTimeout)
actionTimeout - a timeout in second for waiting a browser action to finishprotected void reloadData()
reloadData in class AbstractConfiguratorpublic String getBrowserDownloadDir()
public void setBrowserDownloadDir(String directory)
directory - - browser download directory (absolute path)public String getBrowserDownloadMimeTypes()
public void setBrowserDownloadMimeTypes(String downloadMimeTypes)
downloadMimeTypes - MIME types of files (comma separated) which will be automatically saved
to disk by the browserpublic int getWaitPageToLoadTimeout()
public void setWaitPageToLoadTimeout(int pageLoadTimeout)
pageLoadTimeout - the new timeoutpublic boolean isWorkWithInvisibleElements()
true if we will work with the invisible elements toopublic void setWorkWithInvisibleElements(boolean workWithInvisibleElements)
workWithInvisibleElements - whether to work with the invisible elements toopublic org.openqa.selenium.chrome.ChromeOptions getChromeDriverOptions()
public void setChromeDriverOptions(org.openqa.selenium.chrome.ChromeOptions options)
options - Chrome optionspublic org.openqa.selenium.firefox.FirefoxOptions getFirefoxDriverOptions()
public void setFirefoxDriverOptions(org.openqa.selenium.firefox.FirefoxOptions options)
options - Firefox optionsCopyright © 2017 Axway Software. All rights reserved.