title: How can I find elements including certain strings in id with selenium?
body: <p>I was working on some simple crawler to <strong>scrape</strong> retweet counts on Twitter.
  And I'm stuck with this:</p>
  <pre><code>&lt;span class=&quot;ProfileTweet-actionCountForAria&quot; id=&quot;profile-tweet-action-retweet-count-aria-123456789123456789&quot;&gt;리트윗 0개&lt;/span&gt;
  </code></pre>
  <p>That's the targeted tags I want to collect. And you can see the id of the tag has some varying id number for each user. So I was trying to collect those with find_elements_by_xpath like this:</p>
  <pre><code>retweets = driver.find_elements_by_xpath(&quot;//span[@id='profile-tweet-action-retweet-count-area-*'].text&quot;)
  </code></pre>
  <p>I thought * worked in some places in selenium, but it doesn't work in that code.</p>
  <p>So, in short, how can I find elements with id including 'profile-tweet-action-retweet-count-area'?</p>
  <p>Thanks for your attention. I couldn't find the questions like this (maybe I didn't search it with the right question, hmm), but good references or other links are also found with me!</p>