© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
S. ShuklaThe Protractor Handbookhttps://doi.org/10.1007/978-1-4842-7289-3_3

3. Protractor Web Locators

Shashank Shukla1  
Mandla, Madhya Pradesh, India
This chapter shows you how to locate elements on a web page using Protractor-provided customized locator strategies to handle Angular elements. You will about learn the following.
  • Dealing with more than one fetched element

  • Angular locators like model, repeater, and binding

  • exactRepeater and exactBinding locators

  • buttonText andpartialButtonText locators

  • optionsOptions

Fetching More Than One Element

In test automation, you often fetch more than one element, depending on the selector you use. For instance, in Figure ...

Get The Protractor Handbook: Understanding and Implementing the Tool Effectively now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.