title: Not able to check a button is disabled or not in protractor
body: <p>When i try to check a button is disabled or not, it gives an error </p>
  
  <pre><code>AssertionError: expected { Object (browser_, then, ...) } to be true
  </code></pre>
  
  <p>I am using protractor-cucumber with protractor version 5.2.2,cucumber version 3.2.0 and chai library.</p>
  
  <p>my code is</p>
  
  <pre><code>expect(element(by.css('.frx-btn-login')).getAttribute('disabled')).to.be.true;
  </code></pre>
  
  <p>when i am try to get a string value using getText() method, it also gives this type of error.</p>