title: Python and Selenium xpath for selecting with multiple conditions
body: <p>I have the following code in selenium but continue to get a syntax error. I'm trying to select an element based on multiple conditions.</p>
  
  <pre><code>choices = driver.find_elements_by_xpath("//div[contains(.,'5') and [contains(@class, 'option')]]")$
  </code></pre>
  
  <p>Thanks for any help you can give.</p>