Skip to content

Instantly share code, notes, and snippets.

@Stuk
Created September 6, 2011 12:32
Show Gist options
  • Save Stuk/1197421 to your computer and use it in GitHub Desktop.
Save Stuk/1197421 to your computer and use it in GitHub Desktop.
/**
* Known element location strategies. The returned objects have two
* methods on them, "single" and "many", for locating a single element
* or multiple elements, respectively.
*
* @private
* @const
* @type {Object.<string,bot.locators.strategy>}
*/
bot.locators.STRATEGIES_ = {
'className': bot.locators.className,
'class name': bot.locators.className,
'css': bot.locators.css,
'css selector': bot.locators.css,
'id': bot.locators.id,
'linkText': bot.locators.linkText,
'link text': bot.locators.linkText,
'name': bot.locators.name,
'partialLinkText': bot.locators.partialLinkText,
'partial link text': bot.locators.partialLinkText,
'tagName': bot.locators.tagName,
'tag name': bot.locators.tagName,
'xpath': bot.locators.xpath
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment