title: Protractor: Finding Element by Div Text
body: <p>Hey I have this code in one of my div elements:</p>
  
  <pre><code>&lt;div class="col-sm-8"&gt;Account Information: &lt;/div&gt;
  </code></pre>
  
  <p>Can someone tell me how I would go about finding this element in my protractor code? Is it possible to do something like this:</p>
  
  <p>expect(element(by.divText('Account Information: ')).isDisplayed()).toBe(true);</p>
  
  <p>I have multiple elements with the class "col-sm-8" so I am not able to find the element by class. I was just wondering if there is any way to possibly find the element using the text in the div element? Thanks for the help!</p>