title: how to set a radio button value in protractor
body: <p>I'm new to Protractor, I'm trying to set the radio button value using Protractor. I searched over the internet and the SO for the answers which went vain.</p>
  
  <p><strong>html:</strong></p>
  
  <pre><code>&lt;md-radio-group
              id="radiogrp1"
              name="radiogrp1"
              ng-model="application.myRadioGrp"                
              required&gt;
          &lt;md-radio-button value="N" aria-label="No"&gt;No&lt;/md-radio-button&gt;
          &lt;md-radio-button value="Y" aria-label="Yes"&gt;Yes&lt;/md-radio-button&gt;
          &lt;md-radio-button value="M" aria-label="Maybe"&gt;May&lt;/md-radio-button&gt;
  &lt;/md-radio-group&gt;
  </code></pre>
  
  <p>From the above html file, I tried to set No/Yes/Maybe while executing in my jasmine it() with some Protractor code like shown below:</p>
  
  <pre><code>element.all(by.id('radiogrp1)).get(0).click();
  </code></pre>
  
  <p>For this above code it default accepts yes alone. I want specifically set any value of radio group i.e., child(md-radio-button) like Yes/No/Maybe of parent(md-radio-grp). I tried in many ways like bind, map etc., but nothing helped really. Looking for help. Thanks in advance.</p>