I want to create a while loop that stops at the end of the pages, like here:
I see two ways of doing it (looking to do this without vision):
There is a hover stop sign above the next button when you’re at the last page. However, because of xpath, it continues “clicking” even though it’s not clickable. I’m not sure how to program in the hover stop sign (or what it’s actually called) without using vision.
I can click on the pages button in the middle, scroll down and see the last page, then set the loop to run by that number. Problem is I don’t know how to do that “scroll down and see the last page” part.
Looking for help on either of the ways (or if there is a more clever way) - thank you!
Unfortunately the URL is not public. I am sure I got the xpath code correctly though - I’m using an extension and my script could continue pressing “next” (it just won’t stop since it doesn’t realize that the last next button is “unclickable”)
I tried running your script, replacing "Target": "xpath=", to "Target": "xpath=//*[@id=\"provider-mounter\"]/div/div[2]/div[2]/div/div[1]/div/div[2]/div/div[2]/div/div/div/div/div[2]/div/div[3]/div/div/div/div/div[3]/div/div[2]/button[2]" but it didn’t work - am I doing this correctly?
When I meant the next button is not available, I meant that xclick could still “click” it, it just won’t work and has a “stop” sign: