title: Checking a radio button in Protractor + AngularJS
body: <p>I have a radio button on my html page and I'd like to test the value of the current selected option</p>
  
  <pre><code>        &lt;div&gt;
              &lt;input type="radio" name="radio1" value="enabled" checked/&gt;
              &lt;label for="radio1"&gt;Yes&lt;/label&gt;
          &lt;/div&gt;
          &lt;div&gt;
              &lt;input type="radio" name="radio1" value="disabled" /&gt;
              &lt;label for="radio1"&gt;No&lt;/label&gt;
          &lt;/div&gt;
          &lt;br /&gt;
  </code></pre>
  
  <p>I'm using this code on the page object I use to test </p>
  
  <pre><code>var radio = $("input[type='radio'][name='radio1']:checked").val();
  </code></pre>
  
  <p>Unfortunately I get </p>
  
  <blockquote>
    <p>val() is undefined</p>
  </blockquote>
  
  <p>How can I return "enabled" or "disabled" based on the current status of the radio button?</p>