Pop up window data scraping

I am trying to scrape all review text after clicking "View all reviews" buttton, the my sitemap cant seem to get data from up the pop up window.

Url: https://ca.coachoutlet.com/en/products/city-tote-bag/CR111-SV%2FQD.html?src=sem&src=sem

Sitemap:
{"_id":"CoachTote","startUrl":["https://ca.coachoutlet.com/en/products/city-tote-bag/CR111-SV%2FQD.html?src=sem&src=sem"],"selectors":[{"id":"Page open","linkType":"linkFromRedirect","multiple":false,"parentSelectors":["_root"],"selector":"button.css-13tdfey","type":"SelectorLink"},{"delay":0,"elementLimit":500,"id":"Element","multiple":true,"parentSelectors":["Page open"],"selector":".css-xepwwm div.review-list-item:nth-of-type(n+8)","type":"SelectorElementScroll"},{"id":"Reviews","multiple":false,"parentSelectors":["Element"],"regex":"","selector":".css-xepwwm div:nth-of-type(8) div.review-response-details-description","type":"SelectorText"}]}

Anyone out there who can help :wink:

Hi, the review pop-up has an inner scroll thus a custom code snipped had to be inserted in the sitemap to make it work:

{"_id":"CoachTote2","startUrl":["https://ca.coachoutlet.com/en/products/city-tote-bag/CR111-SV%2FQD.html?src=sem&src=sem"],"selectors":[{"clickActionType":"real","clickElementSelector":"[data-qa=\"rnr_btn_viewallrev\"]","clickElementUniquenessType":"uniqueText","clickType":"clickOnce","delay":500,"discardInitialElements":"do-not-discard","id":"open-all","multiple":false,"parentSelectors":["_root"],"selector":"body","type":"SelectorElementClick"},{"delay":0,"elementLimit":0,"id":"review-wrapper","multiple":true,"parentSelectors":["_root"],"scrollElementSelector":"div.css-1hzaz8z","selector":"div.chakra-modal__body [data-qa=\"pdp_reviews_item_wrapper\"]","type":"SelectorElementScroll"},{"id":"title","multiple":false,"parentSelectors":["review-wrapper"],"regex":"","selector":"h5","type":"SelectorText"},{"id":"text","multiple":false,"parentSelectors":["review-wrapper"],"regex":"","selector":"div.review-response-details-description","type":"SelectorText"}]}
1 Like