Package org.openqa.selenium
Interface Capabilities
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
ImmutableCapabilities
,MutableCapabilities
,PersistentCapabilities
public interface Capabilities extends java.io.Serializable
Describes a series of key/value pairs that encapsulate aspects of a browser.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
asMap()
default java.lang.String
getBrowserName()
default java.lang.String
getBrowserVersion()
java.lang.Object
getCapability(java.lang.String capabilityName)
default java.util.Set<java.lang.String>
getCapabilityNames()
default Platform
getPlatform()
Deprecated.default Platform
getPlatformName()
default java.lang.String
getVersion()
Deprecated.default boolean
is(java.lang.String capabilityName)
default Capabilities
merge(Capabilities other)
Merge twoCapabilities
together and return the union of the two as a newCapabilities
instance.
-
-
-
Method Detail
-
getBrowserName
default java.lang.String getBrowserName()
-
getPlatform
@Deprecated default Platform getPlatform()
Deprecated.
-
getPlatformName
default Platform getPlatformName()
-
getVersion
@Deprecated default java.lang.String getVersion()
Deprecated.
-
getBrowserVersion
default java.lang.String getBrowserVersion()
-
asMap
java.util.Map<java.lang.String,java.lang.Object> asMap()
- Returns:
- The capabilities as a Map.
-
getCapability
java.lang.Object getCapability(java.lang.String capabilityName)
- Parameters:
capabilityName
- The capability to return.- Returns:
- The value, or null if not set.
- See Also:
org.openqa.selenium.remote.CapabilityType
-
is
default boolean is(java.lang.String capabilityName)
- Parameters:
capabilityName
- The capability to check.- Returns:
- Whether or not the value is not null and not false.
- See Also:
org.openqa.selenium.remote.CapabilityType
-
merge
default Capabilities merge(Capabilities other)
Merge twoCapabilities
together and return the union of the two as a newCapabilities
instance. Capabilities fromother
will override those inthis
.
-
getCapabilityNames
default java.util.Set<java.lang.String> getCapabilityNames()
-
-