Class webdriver.Locator

code »

An element locator.

Constructor

webdriver.Locator ( using, value )
Parameters
using: string
The type of strategy to use for this locator.
value: string
The search target of this locator.
Show:

Instance Methods

code »toString ( )string

Instance Properties

The search strategy to use when searching for an element.

The search target for this locator.

Static Functions

Verifies that a value is a valid locator to use for searching for elements on the page.

Parameters
value: *
The value to check is a valid locator.
Returns
A valid locator object or function.
Throws
TypeError
If the given value is an invalid locator.

Creates a factory function for a webdriver.Locator.

Parameters
type: string
The type of locator for the factory.
Returns
The new factory function.