Package org.openqa.selenium
Interface Capabilities
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ImmutableCapabilities
,MutableCapabilities
,PersistentCapabilities
Describes a series of key/value pairs that encapsulate aspects of a browser.
-
Method Summary
Modifier and TypeMethodDescriptionasMap()
default String
default String
@Nullable Object
getCapability
(String capabilityName) default @Nullable Platform
default boolean
default Capabilities
merge
(Capabilities other) Merge twoCapabilities
together and return the union of the two as a newCapabilities
instance.
-
Method Details
-
getBrowserName
-
getPlatformName
-
getBrowserVersion
-
asMap
- Returns:
- The capabilities as a Map.
-
getCapability
- Parameters:
capabilityName
- The capability to return.- Returns:
- The value, or null if not set.
- See Also:
-
is
- Parameters:
capabilityName
- The capability to check.- Returns:
- Whether the value is not null and not false.
- See Also:
-
merge
Merge twoCapabilities
together and return the union of the two as a newCapabilities
instance. Capabilities fromother
will override those inthis
. -
getCapabilityNames
-