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

VisualforceByHtmlTagLocator

global with sharing class VisualforceByHtmlTagLocator extends ElementLocator
DescriptionVisualforceByHtmlTagLocator locates an HTML element generated by a Visualforce tag. Use this locator when you want to locate an element that is not supported by VisualforceLocator.

The following code snippet shows how to retrieve a form WebElement generated by the <apex:form> tag with the Id attribute set to 'storyWorkForm.' Because VisualforceLocator currently does not support the <apex:form> tag, it inestead uses a VisualforceByIdLocater with a 'form' HTML tag passed in as the first argument.

 
 cinnamon.WebElement storyWorkForm = getElement(new cinnamon.VisualforceByHtmlTagLocator('form', 'storyWorkForm'));
  
SeeWebElement, VisualforceLocator

Methods

  getLocator

global override String getLocator()
DescriptionReturns the CSS selector used by this particular VisualforceLocator object.
ReturnsThe CSS selector used by this particular VisualforceLocator object.

  VisualforceByHtmlTagLocator

Parameters
htmlTagThe HTML tag used to find a particular HTML element.
vfIdThe Id attribute of a Visualforce tag used to generate this HTML element.