Im trying to press a button using selenium but the ID is generated every time I access the website. I've tried using the xpath and Css selectors that I get from Google Chrome but it appears to be using the ID so its unreliable. Heres the Html Code
<ul data-componentname="gender">
<li id="4ed02d40-a727-4c69-9bb6-b39bcb752bfc" class="">
<input type="button">
<span>Male</span>
</li>
<li id="76e7055e-ac37-4d12-bec3-27f9ca3410c0" class="">
<input type="button">
<span>Female</span>
</li>