Class Index | File Index

Classes


Class webdriver.Locator


Defined in: locators.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
webdriver.Locator(using, value)
An element locator.
Field Summary
Field Attributes Field Name and Description
<static>  
webdriver.Locator.Strategy
Factory methods for the supported locator strategies.
 
The search strategy to use when searching for an element.
 
u The search target for this locator.
Method Summary
Method Attributes Method Name and Description
<static>  
webdriver.Locator.checkLocator(locator)
Verifies that a {@code locator} is a valid locator to use for searching for elements on the page.
<static>  
webdriver.Locator.createFromObj(obj)
Creates a new Locator from an object whose only property is also a key in the {@code webdriver.Locator.Strategy} map.
 
Class Detail
webdriver.Locator(using, value)
An element locator.
Parameters:
{string} using
The type of strategy to use for this locator.
{string} value
The search target of this locator.
Field Detail
<static> webdriver.Locator.Strategy
Factory methods for the supported locator strategies.

using
The search strategy to use when searching for an element.

value
u The search target for this locator.
Method Detail
<static> {!webdriver.Locator} webdriver.Locator.checkLocator(locator)
Verifies that a {@code locator} is a valid locator to use for searching for elements on the page.
Parameters:
{webdriver.Locator|Object.} locator
The locator to verify, or a short-hand object that can be converted into a locator to verify.
Returns:
{!webdriver.Locator} The validated locator.

<static> {webdriver.Locator} webdriver.Locator.createFromObj(obj)
Creates a new Locator from an object whose only property is also a key in the {@code webdriver.Locator.Strategy} map.
Parameters:
{Object.} obj
The object to convert into a locator.
Returns:
{webdriver.Locator} The new locator object.

{string} toString()
Returns:
{string} String representation of this locator.

Documentation generated by JsDoc Toolkit 2.4.0 on Sat Jan 25 2014 14:42:02 GMT-0500 (EST)