What are the locators in Protractor?
Question
What are the locators in Protractor?
Answer
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:
by.className by.css by.id by.linkText by.name by.partialLinkText by.tagName by.xpath
Angular Specific Locators
by.binding by.exactBinding by.model by.repeater by.exactRepeater by.options Other element locator’s introduced in Protractor:
by.buttonText by.paritalButtonText by.cssContainingText by.deepCss