title: Protractor: get element on the basis of innerhtml
body: <p>I do e2e-tests with Protractor.</p>
  
  <p>There I need to get an element on the basis of the innerhtml content. But I don't know how to do this.</p>
  
  <p>In the html code it looks like that:</p>
  
  <pre><code>&lt;div class="scroll" style="-webkit-transform: translate3d(0px, 0px, 0px) scale(1);"&gt;
  
  &lt;label class="item item-radio" ng-repeat="locale in locales"&gt;
       &lt;input type="radio" name="group" ng-checked="false" ng-click="updateLocale(locale)"&gt;
       &lt;div class="item-content ng-binding"&gt;
          English (USA)
       &lt;/div&gt;
       &lt;i class="radio-icon ion-checkmark"&gt;&lt;/i&gt;
  &lt;/label&gt;
  </code></pre>
  
  <p>Now I need the element "<strong>input</strong>" on the basis of the innerhtml of "<strong>English (USA)</strong>.</p>
  
  <p>What I have tested is that here:</p>
  
  <pre><code>var languageOption = element(by.className('input div item-content ng-binding').getText()).toBe('English (USA)');
  </code></pre>
  
  <p>I always get the error "<strong>has no method 'getText'</strong>"
  What I do wrong?</p>