title: How to check if class attribute contains something?
body: <p>I have two buttons, back and next:</p>
  
  <pre><code>   By.XPath("/html/body/div/div[3]/main/div/div/form/div[1]/div[2]/div[1]/nav/div/button[1]")
  
     By.XPath("/html/body/div/div[3]/main/div/div/form/div[1]/div[2]/div[1]/nav/div/button[2]")
  </code></pre>
  
  <p>First goes to previous page, second goes to the next page of my list. When I open my page, first button will be disabled until I get to another page or both will be disabled if my list is short or emty. I need to click those buttons if they are not disabled. Only diference between disabled and not is class attribute:</p>
  
  <pre><code>class="disabled btn btn-plain btn-default-hover"
  class="btn btn-plain btn-default-hover"
  </code></pre>
  
  <p>So how can I check if buttons class atribute contains 'disabled'? scenario goes like this - if second button active click 'next' and then if first button active click 'back'</p>