title: How to determine if element attribute exists or not using TestCafe?
body: <p>I'm using TestCafe and would like to determine if the checkbox element is present or not. In the HTML element, if the checkbox is already checked then the attribute <code>checked</code> exists otherwise not. How do I determine using TestCafe?</p>
  
  <p>I used the function available in TestCafe - <code>.hasAttribute('checked')</code> but the return is <code>undefined</code>.  </p>
  
  <p>Here is the HTML code when the checkbox is checked:</p>
  
  <p><code>&lt;input class="jss1523" tabindex="-1" type="checkbox" data-indeterminate="false" value checked&gt;</code></p>
  
  <p>Here is the HTML code when the checkbox is unchecked:</p>
  
  <p><code>&lt;input class="jss1523" tabindex="-1" type="checkbox" data-indeterminate="false" value&gt;</code></p>
  
  <p>How do I solve this using TestCafe?</p>