Hi Scrapers,
I am trying to scrape data from Agoda in both the Hotel Search Page and Hotel Detail Page, but I am currently stuck with the "Next" button on the first page of the Search Page.
When I include the code to click on the second page, the data on Hotel Detail Page will not be scraped; I got this piece of code from Google, and I do not know much about coding, so please kindly advise 
Request Interval: 2000ms
Page Load Delay: 6600ms
Sitemap (with "Next" button)
{"_id":"agoda","startUrl":["https://www.agoda.com/search?guid=f61b4031-298d-4f46-b171-8717294e27c8&asq=kLZ1axVO3ZxRP8oYSMjEvJufa9Vwpz6XltTHq4n%2B9gNWBs2j%2BaTDBxHBmITnKLItqn94iveE%2BaqjaYw3BQjew6lW4VGK0AK0EVOqEpW0XCC2VBni%2FySLyh1nAdRn0OYrg%2B2b0qFiCV%2BTZcaB2evlvu%2FlnvFk9rWm5OzcXC1vb%2FvD8UQUbVTcBxoomPr%2FArT1Rfh4LcElwztVA%2F%2ByrVg7yg%3D%3D&city=9395&tick=637485156918&languageId=1&userId=a2062fd8-ecbd-400f-8bad-6107189db666&sessionId=hgv23ed14t3r45u2lccwdmgi&pageTypeId=1&origin=TH&locale=en-US&cid=1811515&aid=82172¤cyCode=THB&htmlLanguage=en-us&cultureInfoName=en-US&memberId=27635240&ckuid=a2062fd8-ecbd-400f-8bad-6107189db666&prid=0&checkIn=2021-12-01&checkOut=2021-12-02&rooms=1&adults=2&children=0&priceCur=THB&los=1&textToSearch=Bangkok&travellerType=1&familyMode=off&productType=-1"],"selectors":[{"id":"scroller1","type":"SelectorElementScroll","parentSelectors":["_root","hotel_page"],"selector":"ol.hotel-list-container li.PropertyCardItem.ssr-search-result:nth-of-type(-n+23)","multiple":true,"delay":"6000"},{"id":"Custom delay1","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"span[id='paginationPageCount']:contains('Page')","multiple":false,"delay":"1100","clickElementSelector":"span[id='paginationPageCount']:contains('Page')","clickType":"clickOnce","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueText"},{"id":"scroller2","type":"SelectorElementScroll","parentSelectors":["_root","hotel_page"],"selector":"ol.hotel-list-container li.PropertyCardItem.ssr-search-result:nth-of-type(n+23)","multiple":true,"delay":"6500"},{"id":"Custom delay2","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"span[id='paginationPageCount']:contains('Page')","multiple":false,"delay":"1100","clickElementSelector":"span[id='paginationPageCount']:contains('Page')","clickType":"clickOnce","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueText"},{"id":"hotel_page","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"div#searchPageRightColumn","multiple":false,"delay":"6300","clickElementSelector":"button#paginationNext.btn.pagination2__next","clickType":"clickMore","discardInitialElements":"discard","clickElementUniquenessType":"uniqueHTML"},{"id":"hotel_link","type":"SelectorLink","parentSelectors":["_root","hotel_page"],"selector":"a.PropertyCard__Link","multiple":true,"delay":0},{"id":"hotel_review","type":"SelectorElement","parentSelectors":["hotel_link","review_page"],"selector":"div.Review-comment","multiple":true,"delay":0},{"id":"review_detail","type":"SelectorText","parentSelectors":["hotel_review"],"selector":"div.Review-comment-body","multiple":true,"regex":"","delay":0},{"id":"customer_country","type":"SelectorText","parentSelectors":["hotel_review"],"selector":".Review-comment-reviewer span:nth-of-type(2)","multiple":true,"regex":"","delay":0},{"id":"customer_room_type","type":"SelectorText","parentSelectors":["hotel_review"],"selector":"[data-info-type='room-type'] span","multiple":true,"regex":"","delay":0},{"id":"customer_staying_date","type":"SelectorText","parentSelectors":["hotel_review"],"selector":"[data-info-type='stay-detail'] span","multiple":true,"regex":"","delay":0},{"id":"customer_type","type":"SelectorText","parentSelectors":["hotel_review"],"selector":"[data-info-type='group-name'] span","multiple":true,"regex":"","delay":0},{"id":"customer_score","type":"SelectorText","parentSelectors":["hotel_review"],"selector":"div.Review-comment-leftScore","multiple":true,"regex":"","delay":0},{"id":"review_date","type":"SelectorText","parentSelectors":["hotel_review"],"selector":".Review-comment-bubble span","multiple":true,"regex":"","delay":0},{"id":"response_detail","type":"SelectorText","parentSelectors":["hotel_review"],"selector":"p.Review-response-text","multiple":true,"regex":"","delay":0},{"id":"response_date","type":"SelectorText","parentSelectors":["hotel_review"],"selector":".Review-response-bubble span","multiple":true,"regex":"","delay":0},{"id":"review_page","type":"SelectorElementClick","parentSelectors":["hotel_link"],"selector":"[data-location='bottom'] div","multiple":true,"delay":2000,"clickElementSelector":"[data-location='bottom'] span.Review-paginator-number","clickType":"clickMore","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueText"},{"id":"hotel_name","type":"SelectorText","parentSelectors":["hotel_link"],"selector":".HeaderCerebrum div:nth-of-type(1)","multiple":false,"regex":"","delay":0},{"id":"hotel_rating","type":"SelectorElementAttribute","parentSelectors":["hotel_link"],"selector":"i.ficon-16.ficon-star-style","multiple":false,"extractAttribute":"class","delay":0}]}
Sitemap (without "Next" button)
{"_id":"agoda2","startUrl":["https://www.agoda.com/search?guid=f61b4031-298d-4f46-b171-8717294e27c8&asq=kLZ1axVO3ZxRP8oYSMjEvJufa9Vwpz6XltTHq4n%2B9gNWBs2j%2BaTDBxHBmITnKLItqn94iveE%2BaqjaYw3BQjew6lW4VGK0AK0EVOqEpW0XCC2VBni%2FySLyh1nAdRn0OYrg%2B2b0qFiCV%2BTZcaB2evlvu%2FlnvFk9rWm5OzcXC1vb%2FvD8UQUbVTcBxoomPr%2FArT1Rfh4LcElwztVA%2F%2ByrVg7yg%3D%3D&city=9395&tick=637485156918&languageId=1&userId=a2062fd8-ecbd-400f-8bad-6107189db666&sessionId=hgv23ed14t3r45u2lccwdmgi&pageTypeId=1&origin=TH&locale=en-US&cid=1811515&aid=82172¤cyCode=THB&htmlLanguage=en-us&cultureInfoName=en-US&memberId=27635240&ckuid=a2062fd8-ecbd-400f-8bad-6107189db666&prid=0&checkIn=2021-12-01&checkOut=2021-12-02&rooms=1&adults=2&children=0&priceCur=THB&los=1&textToSearch=Bangkok&travellerType=1&familyMode=off&productType=-1"],"selectors":[{"id":"scroller1","type":"SelectorElementScroll","parentSelectors":["_root"],"selector":"ol.hotel-list-container li.PropertyCardItem.ssr-search-result:nth-of-type(-n+23)","multiple":true,"delay":"6000"},{"id":"Custom delay1","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"span[id='paginationPageCount']:contains('Page')","multiple":false,"delay":"1100","clickElementSelector":"span[id='paginationPageCount']:contains('Page')","clickType":"clickOnce","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueText"},{"id":"scroller2","type":"SelectorElementScroll","parentSelectors":["_root"],"selector":"ol.hotel-list-container li.PropertyCardItem.ssr-search-result:nth-of-type(n+23)","multiple":true,"delay":"6500"},{"id":"Custom delay2","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"span[id='paginationPageCount']:contains('Page')","multiple":false,"delay":"1100","clickElementSelector":"span[id='paginationPageCount']:contains('Page')","clickType":"clickOnce","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueText"},{"id":"hotel_link","type":"SelectorLink","parentSelectors":["_root"],"selector":"a.PropertyCard__Link","multiple":true,"delay":0},{"id":"hotel_review","type":"SelectorElement","parentSelectors":["hotel_link"],"selector":"div.Review-comment","multiple":true,"delay":0},{"id":"review_detail","type":"SelectorText","parentSelectors":["hotel_review"],"selector":"div.Review-comment-body","multiple":true,"regex":"","delay":0},{"id":"customer_country","type":"SelectorText","parentSelectors":["hotel_review"],"selector":".Review-comment-reviewer span:nth-of-type(2)","multiple":true,"regex":"","delay":0},{"id":"customer_room_type","type":"SelectorText","parentSelectors":["hotel_review"],"selector":"[data-info-type='room-type'] span","multiple":true,"regex":"","delay":0},{"id":"customer_staying_date","type":"SelectorText","parentSelectors":["hotel_review"],"selector":"[data-info-type='stay-detail'] span","multiple":true,"regex":"","delay":0},{"id":"customer_type","type":"SelectorText","parentSelectors":["hotel_review"],"selector":"[data-info-type='group-name'] span","multiple":true,"regex":"","delay":0},{"id":"customer_score","type":"SelectorText","parentSelectors":["hotel_review"],"selector":"div.Review-comment-leftScore","multiple":true,"regex":"","delay":0},{"id":"review_date","type":"SelectorText","parentSelectors":["hotel_review"],"selector":".Review-comment-bubble span","multiple":true,"regex":"","delay":0},{"id":"response_detail","type":"SelectorText","parentSelectors":["hotel_review"],"selector":"p.Review-response-text","multiple":true,"regex":"","delay":0},{"id":"response_date","type":"SelectorText","parentSelectors":["hotel_review"],"selector":".Review-response-bubble span","multiple":true,"regex":"","delay":0},{"id":"hotel_name","type":"SelectorText","parentSelectors":["hotel_link"],"selector":".HeaderCerebrum div:nth-of-type(1)","multiple":false,"regex":"","delay":0},{"id":"hotel_rating","type":"SelectorElementAttribute","parentSelectors":["hotel_link"],"selector":"i.ficon-16.ficon-star-style","multiple":false,"extractAttribute":"class","delay":0}]}
Thank you all so much!