I need to click on the last button (CurrentPageUp) in a row. xPath does not work since nr of buttons change frequently. I tried
find_element_by_xpath('//*[@id="ShowProducts_PagesTop"]/span/button[11]/span')
This does work but nr of buttons change frequently, so I cannot use it
Tried to loop to last button and execute it, but failed as well. Tried to select name but is is an arrow '>' and not sure how to use the '>' equivalent in the code to find and click on it.
.... First range of button codes
<button onclick="CurrentPageUp();" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false"><span class="ui-button-text">
>
</span></button>
</span></div>