Pagination Help Urgent, please!

When I am trying to create a pagination link, when I click on the page numbers and 'next' element, the page changes and the selector automatically deletes itself before I can click save. How can I make this pagination work? I can't do array pages as I'm not sure how many pages there are.

Url: http://yellowpages.com.au

Sitemap:
{"_id":"yellowpages","startUrl":["https://www.yellowpages.com.au/search/listings?clue=Auto+wreckers+%26+recyclers&pageNumber=[1-50]&referredBy=www.yellowpages.com.au&&eventType=pagination"],"selectors":[{"id":"business name","type":"SelectorLink","parentSelectors":["_root"],"selector":"div.cell:nth-of-type(n+3) div.srp-brand-bar-container a.listing-name, div.cell div.cell div.body a.listing-name","multiple":true,"delay":0},{"id":"phone number","type":"SelectorText","parentSelectors":["business name"],"selector":"div.main a.click-to-call span.text div","multiple":false,"regex":"","delay":0},{"id":"address","type":"SelectorText","parentSelectors":["business name"],"selector":"p.listing-address","multiple":false,"regex":"","delay":0},{"id":"email","type":"SelectorHTML","parentSelectors":["business name"],"selector":"div.main a.contact.contact-email","multiple":false,"regex":"","delay":0}]}

Hi!

Why not? All you have to find out is starting and ending page number, just paginate to the ending one to find it's number.
There is a total of 29 pages, so your final and working url would be:

https://www.yellowpages.com.au/search/listings?clue=Auto+wreckers+%26+recyclers&pageNumber=[1-29]&referredBy=www.yellowpages.com.au&&eventType=pagination

P.S. or you mean that you have multiple searches and want universal pagination

Yes I have multiple searches so need universal pagination.

Here you go:

{"_id":"yellowpages","startUrl":["https://www.yellowpages.com.au/search/listings?clue=Auto+wreckers+%26+recyclers&pageNumber=1&referredBy=www.yellowpages.com.au&&eventType=pagination"],"selectors":[{"id":"clicker","type":"SelectorElementClick","selector":"div.sticky-footer-layout-content","parentSelectors":["_root"],"multiple":true,"delay":"5000","clickElementSelector":"a.pagination.navigation:last-child","clickType":"clickMore","discardInitialElements":false,"clickElementUniquenessType":"uniqueText"},{"id":"Company","type":"SelectorText","selector":"a.listing-name","parentSelectors":["group"],"multiple":false,"regex":"","delay":0},{"id":"Address","type":"SelectorText","selector":"p.listing-address","parentSelectors":["group"],"multiple":false,"regex":"","delay":0},{"id":"Phone","type":"SelectorText","selector":"a.click-to-call.contact-phone span.contact-text","parentSelectors":["group"],"multiple":false,"regex":"","delay":0},{"id":"Website","type":"SelectorLink","selector":"a.contact.contact-url","parentSelectors":["group"],"multiple":false,"delay":0},{"id":"group","type":"SelectorElement","selector":"div.cell.in-area-cell:nth-of-type(n+3)","parentSelectors":["clicker"],"multiple":true,"delay":0}]}

I didn't think you could do an element selector as the child of a click selector. That's cool.

1 Like