Protractor locators
Protractor locators: Protractor is wrapper of Selenium Javascript Webdriver. All the locators of selenium webdriver is supported in protractor along with these locators protractor supports angularJS specific attributes ng-model, ng-repeat, ng-options, ng-binding. Here are the list of locators supported by protractor: buttonText partialButtonText binding exactBinding model cssContainingText options deepCss repeater exactRepeater className css id linkText js name partialLinkText tagName Xpath Syntax of Model locator: element(by.model('modelName')); Syntax of binding locator: element(by.binding('bindingName')); Syntax of repeater locator: element.all(by.repeater('RepeaterName')).get(index); Above syntax in
Read more