Namespace: webdriverView Sourceclass LocatorAn element locator. new Locator(using, value)ParametersusingstringThe type of strategy to use for this locator. valuestringThe search target of this locator. Instance MethodstoString()code »ReturnsstringInstance PropertiesusingstringThe search strategy to use when searching for an element. valuestringThe search target for this locator. Static FunctionsLocator.checkLocator(value)code »Verifies that a value is a valid locator to use for searching for elements on the page. Parametersvalue*The value to check is a valid locator. Returns(webdriver.Locator|Function)A valid locator object or function. ThrowsTypeErrorIf the given value is an invalid locator. Static PropertiesLocator.StrategyObject<string, function(string): (Function|webdriver.Locator)>Maps webdriver.By.Hash keys to the appropriate factory function.