protractor CSS Selectors Introduction to locators


Example

A locator in Protractor is used to perform action on HTML dom elements. The most common and best locators used in Protractor are css, id, model and binding. For example commonly used locators are:

by.css('css-selector')
by.id('id')