title: Protractor: get value of binding with xpath
body: <p>If I have html like this:</p>
  
  <pre><code>&lt;body&gt;
      &lt;div id="menu"&gt;
         &lt;div id="button"&gt; {{ someBinding }} &lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>and I have a statement in protractor like this:</p>
  
  <pre><code>ptor.findElement(By.xpath("/body/div[@id='menu']/div[@id='button']"));
  </code></pre>
  
  <p>What would I use to get the value of <em>{{someBinding}}</em>? It seems that protractor tries to compare the value with the binding name. So if I expect <em>{{someBinding}}</em> to say "Hello World" it throws an error saying that </p>
  
  <pre><code>Expected: {{someBinding}} to equal 'Hello World'
  </code></pre>