title: How to locate an element by class name and its text in python selenium
body: <p>Hi I am trying to locate an element by its class name and the text that it contains</p>
  
  <pre><code>&lt;div class="fc-day-number"&gt;15&lt;/div&gt;
  </code></pre>
  
  <p>there are a bunch of <code>fc-day-number</code> on the page with different values, I need the one with for example 15.</p>
  
  <p>I do </p>
  
  <pre><code>driver.find_element_by_class_name("fc-day-content") 
  </code></pre>
  
  <p>but I also need it to be equal to 15 and I am stuck here, please help.</p>