title: Protractor No element found using locator: by.buttonText
body: <p>Running a simple end to test using protractor, load a page, click on a button and the navigate to the next page after clicking the button but i'm getting the following error
      No element found using locator: by.buttonText(Register as a Buyer)
  This is the HTML behind the button</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;a href="/register/buyer" class="btn" data-ss1491391037="1"&gt;
                      Register as a Buyer&lt;/a&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>And snippet from my protractor file</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>element(by.buttonText("Register as a Buyer")).click();</code></pre>
  </div>
  </div>
  </p>
  
  <p>Not sure what I'm missing here or what I'm supposed to change, I'm brand new to Protractor.
  I was able to get something similar above to work using a different button, except that button had a value assigned to it in the HTML code whereas the above doesn't.</p>
  
  <p>Thanks for any help</p>