title: Find element by only a part of its XPath using Selenium
body: <p>I'm trying to find elements which have changing XPaths with only one part staying the same:</p>
  
  <pre><code>//*[@id="foo"]div[2]/div[1]/time
  //*[@id="bar"]div/div[2]/div[1]/time
  //*[@id="bat"]div[1]div[2]/div[1]/time
  </code></pre>
  
  <p>I already tried using <code>driver.find_element_by_xpath("//*[contains(text(), '/div[2]/div[1]/time')]")</code> but this doesn't seem to work.</p>
  
  <p>Here is some example HTML:</p>
  
  <pre><code>&lt;div class="entry-container"&gt;
  &lt;div class="entry-head"&gt;
  &lt;h3&gt; some text &lt;/h3&gt;
  &lt;time class="timestamp" datetime="2020-01-23 08:04:32 UTC"&gt;
  Today at 18:34
  &lt;/time&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I want to get the text from the <code>time</code> element.</p>