title: using async/await in IF loop
body: <p>I am new to protractor. I am currently writing a automation test using protractor to check if an element is enabled and perform on action only when the element is enabled. Following is my code. I want to use async / await but the test never gets inside the loop when i use async await. But the test passes even without  executing.  Please help. </p>
  
  <pre><code>if (await this.button.isEnabled()) {
    await this.text.sendKeys('abc');
    await this.send.click();
  }
  </code></pre>