ode></pre>
    </div>
  
    <div class="runnable-example-file" 
      name="protractor.js"
      type="protractor"
      language="js">
      <pre><code>var checkbox = element(by.css(&#39;custom-checkbox&#39;));&#10;var checkedCheckbox = element(by.css(&#39;custom-checkbox.checked&#39;));&#10;&#10;it(&#39;should have the `checked` class only when checked&#39;, function() {&#10;  expect(checkbox.isPresent()).toBe(true);&#10;  expect(checkedCheckbox.isPresent()).toBe(false);&#10;&#10;  checkbox.click();&#10;