public abstract static class Constants.SeleniumConstants
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
DEFAULT_SUPPORTED_BROWSERS
The default browsers whose drivers will be loaded with Selenium Sever when starting.
Constants.BrowserConstants.BROWSER_NAME_CHROME
Constants.BrowserConstants.BROWSER_NAME_EDGE
Constants.BrowserConstants.BROWSER_NAME_FIREFOX
Constants.BrowserConstants.BROWSER_NAME_IE
|
static java.util.Map<java.lang.String,java.lang.String> |
DRIVER_SHORT_NAME_MAP
When starting the selenium server, the browser-drivers can be specified as VM parameters, such as
-Dwebdriver.ie.driver=path\to\IEDriverServer.exe -Dwebdriver.ie.logfile=workspace\log\ie.console The VM parameter is in format webdriver.<browserShortName>.driver and webdriver.<browserShortName>.logfile, the browser names (NOT short name) have been defined in class Constants.BrowserConstants such as Constants.BrowserConstants.BROWSER_NAME_EDGE etc. |
static java.lang.String |
ITEM_WEB_DRIVERS
Deprecated.
please use
DriverConstant.SeleniumConfigConstant.ITEM_WEB_DRIVERS instead. |
static java.lang.String |
KEY_GRID_NODES_SETTING
'selenium.node' the key for selenium grid node string;
The value is as "node1:port:nodeconfig;node2:port:nodeconfig;"
|
static java.lang.String |
PROPERTY_WEB_DRIVERS
Deprecated.
please use
DriverConstant.SeleniumConfigConstant.PROPERTY_WEB_DRIVERS instead. |
static java.lang.String |
SYSTEM_PROPERTY_BROWSER_NAME
'BROWSER' Indicates the browser's name
|
static java.lang.String |
SYSTEM_PROPERTY_BROWSER_REMOTE
'BROWSER_REMOTE' true or false.
|
static java.lang.String |
SYSTEM_PROPERTY_SELENIUM_HOST
'selenium.host' Indicates on which machine the selenium server is going to run.
|
static java.lang.String |
SYSTEM_PROPERTY_SELENIUM_NODE
'selenium.node', its value is like node1:port:nodeconfig;node2:port:nodeconfig;
semi-colon(;) serves as separator between nodes, colon(:) serves as separator between node-name, port, and node-configuration. |
static java.lang.String |
SYSTEM_PROPERTY_SELENIUM_PORT
'selenium.port' Indicates on which port the selenium server is going to run.
|
static java.lang.String |
SYSTEM_PROPERTY_WEBDRIVER_CHROME
'webdriver.chrome.driver'
|
static java.lang.String |
SYSTEM_PROPERTY_WEBDRIVER_EDGE
'webdriver.edge.driver'
|
static java.lang.String |
SYSTEM_PROPERTY_WEBDRIVER_IE
'webdriver.ie.driver'
|
Constructor and Description |
---|
SeleniumConstants() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
getDefaultSupportedBrowsers() |
public static final java.lang.String SYSTEM_PROPERTY_SELENIUM_HOST
public static final java.lang.String SYSTEM_PROPERTY_SELENIUM_PORT
public static final java.lang.String SYSTEM_PROPERTY_SELENIUM_NODE
public static final java.lang.String SYSTEM_PROPERTY_WEBDRIVER_IE
public static final java.lang.String SYSTEM_PROPERTY_WEBDRIVER_CHROME
public static final java.lang.String SYSTEM_PROPERTY_WEBDRIVER_EDGE
public static final java.lang.String SYSTEM_PROPERTY_BROWSER_NAME
public static final java.lang.String SYSTEM_PROPERTY_BROWSER_REMOTE
public static final java.lang.String KEY_GRID_NODES_SETTING
@Deprecated public static final java.lang.String ITEM_WEB_DRIVERS
DriverConstant.SeleniumConfigConstant.ITEM_WEB_DRIVERS
instead.@Deprecated public static final java.lang.String PROPERTY_WEB_DRIVERS
DriverConstant.SeleniumConfigConstant.PROPERTY_WEB_DRIVERS
instead.public static final java.util.Map<java.lang.String,java.lang.String> DRIVER_SHORT_NAME_MAP
Constants.BrowserConstants
such as Constants.BrowserConstants.BROWSER_NAME_EDGE
etc. But not all
of them is suitable to specify the VM parameter, so this Map is created for mapping 'browser-name' to 'browser-short-name'. The 'browser-short-name'
will be used to specify the VM parameter.public static final java.lang.String[] DEFAULT_SUPPORTED_BROWSERS
Copyright © SAS Institute. All Rights Reserved.