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.


Method Summary
 Map<String,?> asMap()
           
 String getBrowserName()
           
 Object getCapability(String capabilityName)
           
 Platform getPlatform()
           
 String getVersion()
           
 boolean is(String capabilityName)
           
 boolean isJavascriptEnabled()
           
 

Method Detail

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.