title: Using Protractor to change the boolean value of a variable in $scope
body: <p>I'm using Protractor + Selenium to automate some integration tests for my angularjs web app. One of my DOM elements has an <code>ng-if</code> directive like so:</p>
  
  <pre><code>&lt;button ng-if="browserSupported"&gt;
  </code></pre>
  
  <p>When running my tests, I've found that <code>browserSupported</code> is set to false and the button is not in the DOM. Is there any way to change <code>browserSupported</code> to be true using Protractor? I want to test some functionality after clicking that button (it's supposed to open up a new tab with a specific URL.)</p>