title: Finding Element with Constantly Changing Xpath
body: <p>I am new to coding Selenium in Python and, I have been trying to find this button through name, id, xpath, and then click on it but nothing has worked.</p>
  
  <p>The issue is, I cannot find the button because the xpath is constantly changing, and the ID name is just "button", which locating it that way would not work either because there are a lot of other buttons on the page. How can I located the element? </p>
  
  <p><strong>Here is the sites HTML:</strong></p>
  
  <pre><code>&lt;ul data-componentname="gender"&gt;
  
    &lt;li id="b27296be-e8da-4d5a-acb6-d1674bf88568" class=""&gt;
      &lt;input type="button"&gt;
      &lt;span&gt;Male&lt;/span&gt;
    &lt;/li&gt;
  
    &lt;li id="32bf7074-6b69-41bb-9869-cf71ac42686f" class=""&gt;
      &lt;input type="button"&gt;
      &lt;span&gt;Female&lt;/span&gt;
    &lt;/li&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>Here is what I have tried:</strong></p>
  
  <pre><code>clickGender = browser.find_element_by_xpath("b27296be-e8da-4d5a-acb6-d1674bf88568")
  </code></pre>
  
  <p>Any help is greatly appreciated.</p>