Package org.openqa.selenium
Class MutableCapabilities
java.lang.Object
org.openqa.selenium.MutableCapabilities
- All Implemented Interfaces:
Serializable
,Capabilities
- See Also:
-
Constructor Summary
ConstructorDescriptionMutableCapabilities
(Map<String, ?> capabilities) MutableCapabilities
(Capabilities other) -
Method Summary
Modifier and TypeMethodDescriptionasMap()
boolean
getCapability
(String capabilityName) int
hashCode()
merge
(Capabilities other) Merge twoCapabilities
together and return the union of the two as a newCapabilities
instance.void
setCapability
(String capabilityName, boolean value) void
setCapability
(String key, Object value) void
setCapability
(String capabilityName, String value) void
setCapability
(String capabilityName, Platform value) toJson()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.openqa.selenium.Capabilities
getBrowserName, getBrowserVersion, getPlatformName, is
-
Constructor Details
-
MutableCapabilities
public MutableCapabilities() -
MutableCapabilities
-
MutableCapabilities
-
-
Method Details
-
merge
Merge twoCapabilities
together and return the union of the two as a newCapabilities
instance. Capabilities fromother
will override those inthis
.- Specified by:
merge
in interfaceCapabilities
-
setCapability
-
setCapability
-
setCapability
-
setCapability
-
asMap
- Specified by:
asMap
in interfaceCapabilities
- Returns:
- The capabilities as a Map.
-
getCapability
- Specified by:
getCapability
in interfaceCapabilities
- Parameters:
capabilityName
- The capability to return.- Returns:
- The value, or null if not set.
- See Also:
-
org.openqa.selenium.remote.CapabilityType
-
getCapabilityNames
- Specified by:
getCapabilityNames
in interfaceCapabilities
-
toJson
-
hashCode
public int hashCode() -
equals
-
toString
-