1 Answer

0 votes
by

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

Related questions

0 votes
asked Apr 5, 2021 in Protractor by Robindeniel
0 votes
asked Apr 5, 2021 in Protractor by Robindeniel
...