title: Web scraping with selenium to click links that have same/similar name with an input text ignoring the case
body: <p>I am trying to scrape a website using selenium. My goal is to give an input string like &quot;youtube&quot; and my script will go ahead and click the links in that website that contain that string or similar strings. To elaborate on that, if the input string is &quot;youtube&quot; but the link has a friendly name &quot;Youtube&quot; or &quot;You.tube&quot; or &quot;Youtube Go&quot;, I want the script to select/click it.</p>
  <p>I have tried to use</p>
  <ol>
  <li><code>driver.find_element_by_link_text(&quot;youtube&quot;).click()</code></li>
  </ol>
  <p>but it gives error for links that are not an exact match (its also case sensitive so even if the link is &quot;Youtube&quot; it will give error)</p>
  <ol start="2">
  <li><code>driver.find_element_by_partial_link_text(&quot;youtube&quot;).click()</code></li>
  </ol>
  <p>but this also gives error and the only difference with the first option is if I provide a shorter input than the link name and even then, the shorter input needs to be an exact match with a part of the link name.</p>
  <p>Any advice is much appreciated!</p>