title: WebDriver -- Unable to find dynamic span attribute
body: <p>A website that I am testing at the moment derives value from the DB and it's dynamic. I need to be able to fetch the value from DB and validate that against what is present in UI which will not be static. The text I am trying to verify is below, for this, I need to identify the element and verify text by comparing the data from DB and what is present on the screen. The specific text here in this example is "Resource". The same span is repeated several times with different values in the same screen. Please help as to how can I identify the element as well validating against DB. I am new to selenium WebDriver. </p>
  
  <pre><code>&lt;span class="card-title grey-text"&gt;Resource&lt;/span&gt;
  </code></pre>