title: Python Selenium Click button inside span tag using button text
body: <p>The html text below exits on a page. I am trying to have selenium click the button that this tag is referring to. I can not search this href because the id for given app is unknown and link will always have a different id. I have to click on this button by locating it by text inside button which is &quot;New Database/Server&quot;</p>
  <pre><code>&lt;a class=&quot;btn btn-primary&quot; data-turbo-frame=&quot;modal&quot; href=&quot;/repo/servers/new?repo_application_id=280&quot;&gt;&lt;svg class=&quot;bi flex-shrink-0 me-2&quot; height=&quot;24&quot; role=&quot;img&quot; width=&quot;24&quot;&gt;&lt;use href=&quot;#icon_database-plus&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;span class=&quot;pe-3&quot;&gt;New Database/Server&lt;/span&gt;&lt;/a&gt; 
  </code></pre>
  <p>How do I have the driver go to this href link?</p>