Pagination: 'next' page element without link, but js

I am trying to automate the pagination using the 'next' page element that looks like this and it's not a link but javascript. I am trying to use 'Element Click'

*li class="pag-next">Next</li*

Url: https://linkbusiness.com/businesses-for-sale/search?locationNames=%20California&sortBy=FeaturedFirst&page=1&searchByName=True&commissionSplit=AllListings

Sitemap: 
{"_id":"link-businesses-for-sale","startUrl":["https://linkbusiness.com/businesses-for-sale/search?locationNames=%20California&sortBy=LatestListing&page=1&searchByName=True&commissionSplit=AllListings"],"selectors":[{"id":"listing","type":"SelectorElement","parentSelectors":["_root","pagination"],"selector":"article.listing-container","multiple":true,"delay":0},{"id":"listing-id","type":"SelectorText","parentSelectors":["listing"],"selector":"span.listingid","multiple":false,"regex":"","delay":0},{"id":"title","type":"SelectorText","parentSelectors":["listing"],"selector":"h3 a","multiple":false,"regex":"","delay":0},{"id":"price","type":"SelectorText","parentSelectors":["listing"],"selector":"p.price a","multiple":false,"regex":"","delay":0},{"id":"profit","type":"SelectorText","parentSelectors":["listing"],"selector":"p.sub-price:nth-of-type(3) a","multiple":false,"regex":"","delay":0},{"id":"sales","type":"SelectorText","parentSelectors":["listing"],"selector":"p.sub-price:nth-of-type(4) a","multiple":false,"regex":"","delay":0},{"id":"location","type":"SelectorText","parentSelectors":["listing"],"selector":"p.location a","multiple":false,"regex":"","delay":0},{"id":"industry","type":"SelectorText","parentSelectors":["listing"],"selector":"p:nth-of-type(7) a","multiple":false,"regex":"","delay":0},{"id":"type","type":"SelectorText","parentSelectors":["listing"],"selector":"p:nth-of-type(8) a","multiple":false,"regex":"","delay":0},{"id":"pagination","type":"SelectorElementClick","parentSelectors":["_root","pagination"],"selector":"li.pag-next a","multiple":false,"delay":0,"clickElementSelector":"li.pag-next a","clickType":"clickOnce","discardInitialElements":false,"clickElementUniquenessType":"uniqueHTML"}]}

Since the page number changed in the URL, you can use this quick hack to get all the pages

{"_id":"link-businesses-for-sale","startUrl":["https://linkbusiness.com/businesses-for-sale/search?locationNames=%20California&sortBy=LatestListing&page=[1-12]&searchByName=True&commissionSplit=AllListings"],"selectors":[{"id":"listing","type":"SelectorElement","parentSelectors":["_root"],"selector":"article.listing-container","multiple":true,"delay":0},{"id":"listing-id","type":"SelectorText","parentSelectors":["listing"],"selector":"span.listingid","multiple":false,"regex":"","delay":0},{"id":"title","type":"SelectorText","parentSelectors":["listing"],"selector":"h3 a","multiple":false,"regex":"","delay":0},{"id":"price","type":"SelectorText","parentSelectors":["listing"],"selector":"p.price a","multiple":false,"regex":"","delay":0},{"id":"profit","type":"SelectorText","parentSelectors":["listing"],"selector":"p.sub-price:nth-of-type(3) a","multiple":false,"regex":"","delay":0},{"id":"sales","type":"SelectorText","parentSelectors":["listing"],"selector":"p.sub-price:nth-of-type(4) a","multiple":false,"regex":"","delay":0},{"id":"location","type":"SelectorText","parentSelectors":["listing"],"selector":"p.location a","multiple":false,"regex":"","delay":0},{"id":"industry","type":"SelectorText","parentSelectors":["listing"],"selector":"p:nth-of-type(7) a","multiple":false,"regex":"","delay":0},{"id":"type","type":"SelectorText","parentSelectors":["listing"],"selector":"p:nth-of-type(8) a","multiple":false,"regex":"","delay":0}]}

It worked like a charm. Is that documented? Thank you for your help.

Jay

Jay -

No clue. I don't work for Webscraper.io, just help out on the forums from time to time to give back to those who've helped me.

Dude, you are my hero. Great Job!