title: selenium - Failed to execute 'evaluate' on 'Document': The string is not a valid XPath expression
body: <p>There is the following page. </p>
  
  <p><a href="http://remitly.com/us/en/" rel="nofollow noreferrer">http://remitly.com/us/en/</a></p>
  
  <p>When you click on a select, a list with countries appears. I try to select one country, for example, Colombia and click on it. But I get an error.</p>
  
  <blockquote>
    <p>SyntaxError: Failed to execute 'evaluate' on 'Document': The string
    '//span[contains(@class, 'md_countryName_fdxiah8' and text(),
    'Colombia')]' is not a valid XPath expression.</p>
  </blockquote>
  
  <pre><code>select = driver.find_element_by_class_name('f1wrnyr7')
  select.click()
  countries = driver.find_element_by_class_name('f1o6pohl')
  country = countries.find_element_by_xpath("//span[contains(@class, 'md_countryName_fdxiah8' and text(), 'Colombia')]")
  </code></pre>