title: How to set an attribute on an element with protractor?
body: <p>I have this snippet that returns an <code>ElementFinder</code></p>
  
  <pre><code>const elem = $('[formatcontrolname="startDate"]').$('input');
  </code></pre>
  
  <p>I want to set the attribute <code>ng-reflect-model</code> on this element.</p>
  
  <p>Advice for doing this? </p>
  
  <p>I've tried a few <code>browser.executeScript</code> commands, but I can't figure out how to leverage the variable <code>elem</code>.</p>
  
  <hr>
  
  <p>Edit: I did not end up going this route. I was able to do what I needed using standard css selectors in protractor.</p>