org.openqa.selenium
Interface Capabilities
- All Known Implementing Classes:
- DesiredCapabilities
public interface Capabilities
Describes a series of key/value pairs that encapsulate aspects of a browser.
getBrowserName
String getBrowserName()
getPlatform
Platform getPlatform()
getVersion
String getVersion()
isJavascriptEnabled
boolean isJavascriptEnabled()
asMap
Map<String,?> 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:
CapabilityType
is
boolean is(String capabilityName)
- Parameters:
capabilityName
- The capability to check.
- Returns:
- Whether or not the value is not null and not false.
- See Also:
CapabilityType
Copyright © 2013. All rights reserved.