public abstract static class DriverConstant.SeleniumConfigConstant extends Constants.SeleniumConstants
DriverConstant.SECTION_SAFS_SELENIUM
for SELENIUM.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_CONNECTION_TEST_MAX_DURATION
5000 defines the default maximum duration (in milliseconds) that user can accept when executing
selenium-driver-command
defined by
PROPERTY_CONNECTION_TEST_COMMAND or ITEM_CONNECTION_TEST_COMMAND . |
static int |
DEFAULT_CONNECTION_TEST_MAX_TRY
2 defines the maximum times to try to get a good connection.
|
static int |
DEFAULT_DELAY_GET_CONTENT
0 milliseconds delay waiting for the refresh of a webelement before getting its content.
|
static java.lang.String |
DEFAULT_JVM_MEMORY_MAXIMUM
"2g" default maximum memory for the SELENIUM server
|
static java.lang.String |
DEFAULT_JVM_MEMORY_MINIMUM
"512m" default minimum memory for the SELENIUM server
|
static java.lang.String |
DEFAULT_SELENIUM_HOST
'localhost' the default host where the SELENIUM server will run
|
static java.lang.String |
DEFAULT_SELENIUM_HOST_IP
'127.0.0.1' the default host where the SELENIUM server will run
|
static java.lang.String |
DEFAULT_SELENIUM_NODE_PORT
'5555' the default port number on which the SELENIUM node will run
|
static int |
DEFAULT_SELENIUM_NODE_PORT_INT
5555
|
static java.lang.String |
DEFAULT_SELENIUM_PORT
'4444' the default port number on which the SELENIUM "standalone server"/"grid hub" will run
|
static int |
DEFAULT_SELENIUM_PORT_INT
4444
|
static java.lang.String |
ITEM_CONNECTION_TEST_COMMAND
"connection.test.command" defines the selenium-driver-command
used to test the connection between WebDriver and BrowserDriver.
selenium-driver-command is a string understood by a remote server using the JSON wire protocol. It is an item under section DriverConstant.SECTION_SAFS_SELENIUM Examples: [SAFS_SELENIUM] connection.test.command=getAlertText connection.test.command=getCurrentWindowSize |
static java.lang.String |
ITEM_CONNECTION_TEST_MAX_DURATION
"connection.test.max.duration" defines the maximum duration (in milliseconds) that user can accept when executing
selenium-driver-command
defined by
PROPERTY_CONNECTION_TEST_COMMAND or ITEM_CONNECTION_TEST_COMMAND .It is an item under section DriverConstant.SECTION_SAFS_SELENIUM Examples: [SAFS_SELENIUM] connection.test.max.duration=3000 |
static java.lang.String |
ITEM_CONNECTION_TEST_MAX_TRY
"connection.test.max.try" defines the maximum times to try to get a good connection between WebDriver and BrowserDriver
It is an item under section DriverConstant.SECTION_SAFS_SELENIUM Examples: [SAFS_SELENIUM] connection.test.max.try=10 |
static java.lang.String |
ITEM_CONSOLE_STATE
"CONSOLE_STATE" defines the state of the JVM console for the SELENIUM server
The value can be: MAX|MIN|NORMAL|MAXIMIZE|MINIMIZE |
static java.lang.String |
ITEM_DELAY_WAIT_REFRESH
"delay.get.content" defines the delay (milliseconds) waiting for the refresh of a webelement before getting its content.
|
static java.lang.String |
ITEM_WEB_DRIVERS
"WEB_DRIVERS" defines a set of drivers to start with the selenium-server.
The value can be a combination (separated by a colon :) of Constants.BrowserConstants.BROWSER_NAME_IE
Constants.BrowserConstants.BROWSER_NAME_CHROME
Constants.BrowserConstants.BROWSER_NAME_EDGE
BrowserConstants.BROWSER_NAME_XXX might be supported. |
static java.lang.String |
PROPERTY_CONNECTION_TEST_COMMAND
"safs.selenium.connection.test.command" defines the selenium-driver-command
used to test the connection between WebDriver and BrowserDriver.
selenium-driver-command is a string understood by a remote server using the JSON wire protocol. Examples: -Dsafs.selenium.connection.test.command=getAlertText -Dsafs.selenium.connection.test.command=getCurrentWindowSize |
static java.lang.String |
PROPERTY_CONNECTION_TEST_MAX_DURATION
"safs.selenium.connection.test.max.duration" defines the maximum duration (in milliseconds) that user can accept when executing
selenium-driver-command
defined by
PROPERTY_CONNECTION_TEST_COMMAND or ITEM_CONNECTION_TEST_COMMAND .Examples: -Dsafs.selenium.connection.test.max.duration=3000 |
static java.lang.String |
PROPERTY_CONNECTION_TEST_MAX_TRY
"safs.selenium.connection.test.max.try" defines the maximum times to try to get a good connection between WebDriver and BrowserDriver
Examples: -Dsafs.selenium.connection.test.max.try=10 |
static java.lang.String |
PROPERTY_CONSOLE_STATE
"safs.selenium.console.state" defines the state of the JVM console for the SELENIUM server
JVM command line: -Dsafs.selenium.console.state=MAX|MIN|NORMAL|MAXIMIZE|MINIMIZE |
static java.lang.String |
PROPERTY_DELAY_GET_CONTENT
"safs.selenium.delay.get.content" defines the delay (milliseconds) waiting for the refresh of a webelement before getting its content.
|
static java.lang.String |
PROPERTY_WEB_DRIVERS
"safs.selenium.web.drivers" defines a set of drivers to start with the selenium-server.
The value can be a combination (separated by a colon :) of Constants.BrowserConstants.BROWSER_NAME_IE
Constants.BrowserConstants.BROWSER_NAME_CHROME
Constants.BrowserConstants.BROWSER_NAME_EDGE
BrowserConstants.BROWSER_NAME_XXX might be supported. |
static java.lang.String |
SELENIUMHOST
"SELENIUMHOST" define the host name where the SELENIUM "standalone server"/"grid hub" will run
|
static java.lang.String |
SELENIUMNODE
"SELENIUMNODE" define the selenium nodes to run.
|
static java.lang.String |
SELENIUMPORT
"SELENIUMPORT" define the port number on which the SELENIUM "standalone server"/"grid hub" will run
|
static java.lang.String |
SELENIUMSERVER_JVM
"SELENIUMSERVER_JVM" defines the JVM to start the SELENIUM server.
The value should be an absolute path of the java.exe executable, for example as following SELENIUMSERVER_JVM="D:\jdk\jdk1.7.0_45_64bit\bin\java.exe" |
static java.lang.String |
SELENIUMSERVER_JVM_OPTIONS
"SELENIUMSERVER_JVM_OPTIONS" defines the JVM Options for the SELENIUM server.
|
static java.lang.String |
SELENIUMSERVER_JVM_Xms
"SELENIUMSERVER_JVM_Xms" define the minimum memory to use for the SELENIUM server
|
static java.lang.String |
SELENIUMSERVER_JVM_Xmx
"SELENIUMSERVER_JVM_Xmx" define the maximum memory to use for the SELENIUM server
To use a very high memory, 4g for example, you may need to specify the SELENIUMSERVER_JVM to use 64 bits Java. |
DRIVER_SHORT_NAME_MAP, KEY_GRID_NODES_SETTING, SYSTEM_PROPERTY_BROWSER_NAME, SYSTEM_PROPERTY_BROWSER_REMOTE, SYSTEM_PROPERTY_SELENIUM_HOST, SYSTEM_PROPERTY_SELENIUM_NODE, SYSTEM_PROPERTY_SELENIUM_PORT, SYSTEM_PROPERTY_WEBDRIVER_CHROME, SYSTEM_PROPERTY_WEBDRIVER_EDGE, SYSTEM_PROPERTY_WEBDRIVER_IE
Constructor and Description |
---|
SeleniumConfigConstant() |
public static final java.lang.String SELENIUMHOST
SELENIUMPORT
,
Constant Field Valuespublic static final java.lang.String DEFAULT_SELENIUM_HOST
public static final java.lang.String DEFAULT_SELENIUM_HOST_IP
public static final java.lang.String SELENIUMPORT
SELENIUMHOST
,
Constant Field Valuespublic static final int DEFAULT_SELENIUM_PORT_INT
public static final java.lang.String DEFAULT_SELENIUM_PORT
public static final int DEFAULT_SELENIUM_NODE_PORT_INT
public static final java.lang.String DEFAULT_SELENIUM_NODE_PORT
public static final java.lang.String SELENIUMNODE
SELENIUMHOST
will be considered as "standalone server"
If this is provided, then SELENIUMHOST
will be considered as "grid hub" on which all nodes will register.SELENIUMHOST
,
Constant Field Valuespublic static final java.lang.String SELENIUMSERVER_JVM_Xmx
SELENIUMSERVER_JVM
to use 64 bits Java.SELENIUMSERVER_JVM_Xms
,
Constant Field Valuespublic static java.lang.String DEFAULT_JVM_MEMORY_MAXIMUM
public static final java.lang.String SELENIUMSERVER_JVM_Xms
SELENIUMSERVER_JVM_Xmx
,
Constant Field Valuespublic static java.lang.String DEFAULT_JVM_MEMORY_MINIMUM
public static final java.lang.String SELENIUMSERVER_JVM_OPTIONS
SELENIUMSERVER_JVM_Xms
and SELENIUMSERVER_JVM_Xmx
are finer, if they exist then
they will be used instead of the options specified in SELENIUMSERVER_JVM_OPTIONS
.SELENIUMSERVER_JVM
to use 64 bits Java.public static final java.lang.String SELENIUMSERVER_JVM
public static final java.lang.String ITEM_CONSOLE_STATE
SELENIUMSERVER_JVM_Xms
,
Constant Field Valuespublic static final java.lang.String PROPERTY_CONSOLE_STATE
public static final java.lang.String ITEM_WEB_DRIVERS
Constants.BrowserConstants.BROWSER_NAME_IE
Constants.BrowserConstants.BROWSER_NAME_CHROME
Constants.BrowserConstants.BROWSER_NAME_EDGE
DriverConstant.SECTION_SAFS_SELENIUM
public static final java.lang.String PROPERTY_WEB_DRIVERS
Constants.BrowserConstants.BROWSER_NAME_IE
Constants.BrowserConstants.BROWSER_NAME_CHROME
Constants.BrowserConstants.BROWSER_NAME_EDGE
public static final java.lang.String ITEM_CONNECTION_TEST_COMMAND
DriverConstant.SECTION_SAFS_SELENIUM
public static final java.lang.String PROPERTY_CONNECTION_TEST_COMMAND
public static final java.lang.String ITEM_CONNECTION_TEST_MAX_DURATION
PROPERTY_CONNECTION_TEST_COMMAND
or ITEM_CONNECTION_TEST_COMMAND
.DriverConstant.SECTION_SAFS_SELENIUM
public static final java.lang.String PROPERTY_CONNECTION_TEST_MAX_DURATION
PROPERTY_CONNECTION_TEST_COMMAND
or ITEM_CONNECTION_TEST_COMMAND
.public static final int DEFAULT_CONNECTION_TEST_MAX_DURATION
PROPERTY_CONNECTION_TEST_COMMAND
or ITEM_CONNECTION_TEST_COMMAND
.public static final java.lang.String ITEM_CONNECTION_TEST_MAX_TRY
DriverConstant.SECTION_SAFS_SELENIUM
public static final java.lang.String PROPERTY_CONNECTION_TEST_MAX_TRY
public static final int DEFAULT_CONNECTION_TEST_MAX_TRY
public static final java.lang.String ITEM_DELAY_WAIT_REFRESH
DriverConstant.SECTION_SAFS_SELENIUM
public static final java.lang.String PROPERTY_DELAY_GET_CONTENT
Sometimes the Component's content will get refreshed (the html tag will be redrawn on page), we need to wait before it is ready. Otherwise, the content is stale and StaleElementReferenceException will be thrown out if we try to operate the content.
public static final int DEFAULT_DELAY_GET_CONTENT
Copyright © SAS Institute. All Rights Reserved.