title: XPATH to select all elements with same attribute name but different values
body: <p>Actually i want construct an XPATH to click on all emails one by one. I see that there is an attribute "date-time" in all email divs. How i can find the XPATH of elements with attribute "date-time" given that all values are different for this attribute.</p>
  
  <p>of one email <a href="https://i.stack.imgur.com/sLhzI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sLhzI.png" alt="emails i want o select one by one"></a>:</p>
  
  <pre><code> &lt;div tabindex="-1" data- 
   convid="AQQkADAwATYwMAItZmQxOC0yZDI2LTAwAi0wMAoAEAA4dP/BjTqlQb/qmiKQpP+f" 
   data-time="2018-05-01T11:14:04+08:00" id="_ariaId_401" class=""&gt;&lt;div&gt; 
   &lt;/div&gt;&lt;div autoid="_lvv_d" class="_lvv_H1 _lvv_I1 _lvv_L1 
   listItemDefaultBackground" tabindex="-1" role="option" aria- 
   haspopup="true"&gt; 
   &lt;div class="_lvv_M1 ms-bgc-ts 
  </code></pre>
  
  <p>all other identifiers look very dynamic which changes frequently as page is refreshed. Can you please help find XPATH of "date-time" to select all emails.</p>
  
  <p>Here is what i have trying so far -</p>
  
  <pre><code>elements = driver.find_elements_by_xpath(//*[text()[contains(.,'data-time')]])
  </code></pre>