Cinnamon Documentation

Assert
BaseExplicitWaitTest
BaseTest
Capabilities
Context
Cookie
CookieManager
CSSLocator
ElementLocator
ExpectedCondition
ExpectedConditions
OrgUnderTest
PageObject
RemoteAlert
RemoteMouse
RemoteTouch
RemoteWebDriver
RemoteWebDriverServiceProvider
SelectOptionAdapter
StandardLayoutLocator
TableWebElement
TestUtil
VisualforceByHtmlTagLocator
VisualforceChildLocator
VisualforceLocator
Wait
WebElement
WindowSize

Capabilities

global with sharing class Capabilities
Description Implements WebDriver's Capability interface for browser capabilities. For more information, visit this page.

Methods

   Capabilities

global Capabilities()

   Capabilities

global Capabilities(Map<String,Object> originalCapabilities)
Description Constructor.
Parameters
originalCapabilities A map of capabilities for the session.

   Capabilities

global Capabilities(String platform, String browserName, String browserVersion)
Description Constructor.
Parameters
platform The platform (OS) on which the session is running.
browserName The name of the web browser on which the session is running.
browserVersion The version of the web browser on which the session is running.

   get

global object get(String capabilityName)
Description Gets a particular capability from the capabilities map.
Returns The capability from the capabilities map.
Parameters
capabilityName The name of the capability.

   has

global boolean has(String capabilityName)
Description A method for determining whether or not the session has a particular capability.
Returns True if the session has the given capability, false otherwise.
Parameters
capabilityName The name of the capability for which to check.

   set

global void set(String capabilityName, String capability)
Description Inserts a new capability into the capabilities map.
Parameters
capabilityName The name of the capability you're inserting (the key in the map).
capability The capability you're inserting (the value in the map).