I need to on the last (CurrentPageUp) in a .
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">
        &gt;
    </span></button>
</span></div>



Source link https://sqa.stackexchange.com/questions/20594/want-to-click-on-last-button-in-row-in--

LEAVE A REPLY

Please enter your comment!
Please enter your name here