XPath selectors can be used to select elements with specific attributes, such as class, id, title etc.
By Class
View:
<div class="HakunaMatata"> Hakuna Matata </div>
Code:
var theLionKing= element(by.xpath('//div[@class="HakunaMatata"]'));
expect(theLionKing.g...