title: if else statement not working in testcafe
body: <pre><code>async selectLocalAdmin(){
      if(this.localAdmin.visible){
           await t.click(this.localAdmin);
      }
      else{
           console.log('not visible');
      }
  </code></pre>
  <p>}</p>
  <p>I was trying to add some if else statements here and i observe that even when the if statment is true the click function is not happening, any idea on why this is happening?</p>