Pagination hierarchy issue - only first and last pages scraped

This is a situation where the link elements are on the pagination pages. Have tried placing pagination at various levels but need to understand how it ranks versus other Selectors at the same level in the tree hierarchy. Tutorials only deal with pagination on the pages with data not the higher level link pages. This seems to be a common issue, several other topics are on same issue but unanswered e.g. @LEZ , would be good to have a tutorial that deals with this scenario.

Url: https://www.tripadvisor.com.au/Hotels-g294331-Fiji-Hotels.html

Sitemap:
{"_id":"fiji1","startUrl":["https://www.tripadvisor.com.au/Hotels-g294331-Fiji-Hotels.html"],"selectors":[{"id":"linkpage","type":"SelectorLink","parentSelectors":["_root","paginationlinkepage"],"selector":"a.property_title","multiple":true,"delay":"2000"},{"id":"items","type":"SelectorElement","parentSelectors":["linkpage"],"selector":"div.ppr_rup.ppr_priv_about_react div.hotels-hotel-review-layout-Section__reorg--3Z_bK","multiple":true,"delay":0},{"id":"rating","type":"SelectorText","parentSelectors":["items"],"selector":"span.hotels-hotel-review-about-with-photos-Reviews__overallRating--3cjYf","multiple":false,"regex":"","delay":0},{"id":"class","type":"SelectorHTML","parentSelectors":["items"],"selector":"div.hotels-hotel-review-about-with-photos-GoodToKnow__container--1DXBS div.ui_column:nth-of-type(2)","multiple":false,"regex":"","delay":0},{"id":"paginationlinkepage","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"div.relWrap div.unified","multiple":false,"delay":"3000","clickElementSelector":"span.nav.next","clickType":"clickMore","discardInitialElements":false,"clickElementUniquenessType":"uniqueText"}]}

Another illustration where I have moved the pagination link to the link page as suggested in the tutorials (Link Selector, fig 3) but it doesn't work...

{"_id":"fiji1","startUrl":["https://www.tripadvisor.com.au/Hotels-g294331-Fiji-Hotels.html"],"selectors":[{"id":"linkpage","type":"SelectorLink","parentSelectors":["_root","pagination-link"],"selector":"a.property_title","multiple":true,"delay":"2000"},{"id":"items","type":"SelectorElement","parentSelectors":["linkpage"],"selector":"div.ppr_rup.ppr_priv_about_react div.hotels-hotel-review-layout-Section__reorg--3Z_bK","multiple":true,"delay":0},{"id":"rating","type":"SelectorText","parentSelectors":["items"],"selector":"span.hotels-hotel-review-about-with-photos-Reviews__overallRating--3cjYf","multiple":false,"regex":"","delay":0},{"id":"class","type":"SelectorHTML","parentSelectors":["items"],"selector":"div.hotels-hotel-review-about-with-photos-GoodToKnow__container--1DXBS div.ui_column:nth-of-type(2)","multiple":false,"regex":"","delay":0},{"id":"pagination-link","type":"SelectorElementClick","parentSelectors":["_root","pagination-link"],"selector":"div.relWrap div.unified","multiple":true,"delay":0,"clickElementSelector":"div.relWrap span.pageNum","clickType":"clickOnce","discardInitialElements":false,"clickElementUniquenessType":"uniqueText"}]}

Please see my last few fixes - this is the same fix.

{"_id":"forum-tripadvisor-fix","startUrl":["https://www.tripadvisor.com.au/Hotels-g294331-Fiji-Hotels.html"],"selectors":[{"id":"linkpage","type":"SelectorLink","parentSelectors":["paginationlinkepage"],"selector":"a.property_title","multiple":false,"delay":""},{"id":"Name","type":"SelectorText","parentSelectors":["linkpage"],"selector":"h1.ui_header","multiple":false,"regex":"","delay":0},{"id":"paginationlinkepage","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"div.prw_rup.prw_meta_hsx_responsive_listing","multiple":true,"delay":"3000","clickElementSelector":"span.nav.next","clickType":"clickMore","discardInitialElements":false,"clickElementUniquenessType":"uniqueCSSSelector"},{"id":"Reviews","type":"SelectorText","parentSelectors":["linkpage"],"selector":"div.ratingContainer span.reviewCount","multiple":false,"regex":"","delay":0},{"id":"Rating-1","type":"SelectorText","parentSelectors":["linkpage"],"selector":"span.header_popularity","multiple":false,"regex":"","delay":0},{"id":"Rating-Overall","type":"SelectorText","parentSelectors":["linkpage"],"selector":"span.overallRating","multiple":false,"regex":"","delay":0},{"id":"Star Rating","type":"SelectorText","parentSelectors":["linkpage"],"selector":"div.hotels-hotel-review-overview-HighlightedAmenities__amenityItem--1AWqu div","multiple":false,"regex":"","delay":0}]}

bretfig, very helpful. Thanks

I've taken your base and modified for my use although I have to say I wouldn't have got there without your example. I have been struggling to understand the subtleties of click element uniqueness and how to effectively nest pagination selectors. It seems I am not alone!

Would be good to see some more tutorials on these issues.

Unfortunately, I'm just a hobbyist, like you and don't work for webscraper. To be honest, i've just experimented a lot to know what works but I'm missing the "why" knowledge.