protractor locators examples Example: angular specific attributes and locators list var ele = element(locator); // Click on the element. ele.click();