title: Check if a html element is shown with protractor
body: <p>I'm testing a simple checkbox that displays a pop up when checked. When I run my e2e test I see the pop up is being displayed after the checkbox gets checked. The result of the test however is false. Why does the <code>isPresent()</code> function return false? Is there some kind of delay?</p>
  
  <p>This is the code of my e2e test:</p>
  
  <pre><code>it('should display popup window if button is checked', function () {
      var popUp = element(by.binding('who.othersIncluded'));
      element(by.id('othersIncl')).click();
      expect(popUp.isPresent()).toBeTruthy();
  });
  </code></pre>
  
  <p>This is the html:</p>
  
  <pre><code>&lt;input id="othersIncl" class="input-checkbox-alt" type="checkbox" data-ng-model="who.othersIncluded" data-ng-change="update()"/&gt;
  
  &lt;div data-ng-show="who.othersIncluded"&gt;
      &lt;div&gt;hidden popup&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>