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

RemoteWebDriver

global with sharing class RemoteWebDriver
DescriptionRemoteWebDriver implements many of the interfaces specified here. Cinnamon is responsible for its instantiation, and test authors can access an instance connected to the remote browser via cinnamon.Context.remoteWebDriver or cinnamon.PageObject.remoteWebDiver.

  Properties

alert
global RemoteAlert alert
capabilities
global capabilities.html'>Capabilities capabilities
cookieManager
DEFAULT_SCRIPT_TIMEOUT
global static integer DEFAULT_SCRIPT_TIMEOUT
javascriptExecutor
global WD_JavascriptExecutor javascriptExecutor
mouse
global RemoteMouse mouse

Methods

  batchSetValue

global void batchSetValue(Map<WebElement, String> mapOfWebElements)
DescriptionA convenience method to, for example, fill out a form in one call. If a WebElement isn't found in the map, the method aborts and returns the ElementLocator in an error message.
Parameters
mapOfWebElementsMaps WebElements with the String that should be sent to it.

  close

global void close()
DescriptionCloses the current window.

  getWindowHandle

global String getWindowHandle()
DescriptionGets the handle of the current window.
ReturnsThe handle of the current window.

  getWindowHandles

global List<String> getWindowHandles()
DescriptionGets all of the window handles for the session.
ReturnsA list of window handles.

  getWindowSize

global WindowSize getWindowSize(String handle)
DescriptionReturns the size of the current window.
ReturnsA WindowSize object containing the current window's size.
Parameters
handleThe new window handle.

  maximizeWindow

global void maximizeWindow(String handle)
DescriptionMaximizes the current window according to system specifications.

  setWindowSize

global void setWindowSize(WindowSize size, String handle)
DescriptionSets the size of the current window.
Parameters
sizeA WindowSize object containing the desired size.
handleThe new window handle.

  setWindowSize

global void setWindowSize(Integer width, Integer height, String handle)
DescriptionSets the size of the current window.
Parameters
widthThe new integer width of the window.
heightThe new integer height of the window.
handleThe new window handle.

  switchToFrame

global void switchToFrame(WebElement frame)
DescriptionSwitches to the iframe identified by the WebElement parameter. Multi-level nested frames are currently only supported in Safari and Google Chrome.
Parameters
frameA WebElement located by VisualforceLocator of type 'apex:iframe' or a null WebElement. If the param is a valid element, the context in which commands are evaluated switches to the frame specified by the WebElement. In case of a null parameter, the context switches to the top-level browsing context.

  switchToParentFrame

global void switchToParentFrame()
DescriptionSwitches to the immediate parent of the current browsing context.

  switchToWindow

global void switchToWindow(String handle)
DescriptionSwitches to the window specified by the handle.