limited time offer

What are the locators in Protractor?

Protractor supports all the element location strategies given by Selenium and it also has unique set of locators particularly to identify elements based on AngularJS attributes.

Selenium locators:

  • className
  • css
  • id
  • linkText
  • name
  • partialLinkText
  • tagName
  • xpath

Angular Specific Locators:

  • binding
  • exactBinding
  • model
  • repeater
  • exactRepeater
  • options

Other element locator’s introduced in Protractor:

  • buttonText
  • paritalButtonText
  • cssContainingText
  • deepCss