public final class SeleniumRunOptions extends Object implements Serializable
Constructor and Description |
---|
SeleniumRunOptions() |
Modifier and Type | Method and Description |
---|---|
void |
addOption(String option)
Add an option to the selenium process' command line arguments list
|
void |
addOptionIfSet(String option,
Object value)
Add an option only if the value is set : not null and length not zero
|
Map<String,String> |
getEnvironmentVariables() |
Map<String,String> |
getJVMArguments()
Returns the jvm arguments that needs to be given to the RcVM class (-D options mostly)
|
List<ProcessArgument> |
getSeleniumArguments()
Returns the selenium process arguments
|
static SeleniumRunOptions |
merge(SeleniumRunOptions options1,
SeleniumRunOptions options2) |
void |
setEnvVar(String key,
String value)
Sets the environment variables to the specified value.
|
public List<ProcessArgument> getSeleniumArguments()
public Map<String,String> getJVMArguments()
public void addOption(String option)
option
- Option to addpublic void addOptionIfSet(String option, Object value)
option
- Option to setvalue
- Value of the optionpublic void setEnvVar(String key, String value)
key
- Variable namevalue
- Variable valuepublic static SeleniumRunOptions merge(SeleniumRunOptions options1, SeleniumRunOptions options2)
Copyright © 2016–2019. All rights reserved.