Interface Capabilities

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractDriverOptions, ChromeOptions, ChromiumOptions, DesiredCapabilities, EdgeOptions, FirefoxOptions, ImmutableCapabilities, InternetExplorerOptions, MutableCapabilities, PersistentCapabilities, SafariOptions

public interface Capabilities extends Serializable
Describes a series of key/value pairs that encapsulate aspects of a browser.
  • Method Details

    • getBrowserName

      default String getBrowserName()
    • getPlatformName

      default Platform getPlatformName()
    • getBrowserVersion

      default String getBrowserVersion()
    • asMap

      Map<String,Object> asMap()
      Returns:
      The capabilities as a Map.
    • getCapability

      Object getCapability(String capabilityName)
      Parameters:
      capabilityName - The capability to return.
      Returns:
      The value, or null if not set.
      See Also:
    • is

      default boolean is(String capabilityName)
      Parameters:
      capabilityName - The capability to check.
      Returns:
      Whether the value is not null and not false.
      See Also:
    • merge

      default Capabilities merge(Capabilities other)
      Merge two Capabilities together and return the union of the two as a new Capabilities instance. Capabilities from other will override those in this.
    • getCapabilityNames

      default Set<String> getCapabilityNames()