title: How can I check button has class disabled?
body: <p>I have two buttons. If one button has class disable than other hasn't. Now I want to check that if first button has class disable than I need to click on second button and vice-versa.</p>
  
  <p>I am trying with below code but it is returning every time true. Disable class is added dynamically depends on condition.</p>
  
  <pre><code>if (expect(element(by.css('ul#menu [data-selector="holdInventory"]'))
  .getAttribute('class')).toEqual('disabled')) {
      console.log('has class');
  } else {
      console.log('has not class');
  }
  </code></pre>
  
  <p>Any help will appreciated.</p>