public enum SeleniumProtocol extends java.lang.Enum<SeleniumProtocol>
Modifier and Type | Method and Description |
---|---|
static SeleniumProtocol |
fromCapabilitiesMap(java.util.Map<java.lang.String,?> capabilities)
Get the protocol considering the capabilities provided which may define the property
RegistrationRequest.SELENIUM_PROTOCOL |
java.lang.String |
getPath()
Get the protocol path
|
java.lang.String |
getPathConsideringCapabilitiesMap(java.util.Map<java.lang.String,?> capabilities)
Get the protocol path considering the capabilities provided which may define a new
path via the property
RegistrationRequest.PATH |
boolean |
isSelenium()
Deprecated.
use
SeleniumProtocol#Selenium#equals(Object) |
static SeleniumProtocol |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SeleniumProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SeleniumProtocol Selenium
public static final SeleniumProtocol WebDriver
public static SeleniumProtocol[] values()
for (SeleniumProtocol c : SeleniumProtocol.values()) System.out.println(c);
public static SeleniumProtocol valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static SeleniumProtocol fromCapabilitiesMap(java.util.Map<java.lang.String,?> capabilities)
RegistrationRequest.SELENIUM_PROTOCOL
capabilities
- map of capabilities to considerSeleniumProtocol
or throws a GridException
if the capabilities
does not define a recognized protocol.public java.lang.String getPathConsideringCapabilitiesMap(java.util.Map<java.lang.String,?> capabilities)
RegistrationRequest.PATH
capabilities
- map of capabilities to considergetPath()
.public java.lang.String getPath()
@Deprecated public boolean isSelenium()
SeleniumProtocol#Selenium#equals(Object)