Scraping pagination problem

Describe the problem.
Hi, i am having problems downloading images from shutterstock. I agree that I have a premium license and what I am doing is simply downloading the images that I already buy and I have the license for it. Shutterstock doesn’t give you the availability to download the images all toghter but you have to download it one by one. I have more thank 1000 images to download and there about 50 images on each page. I have created a script that manages (only on the first page) to open the specific page, click on the download button, accept the supplementary license, and download the image). The problem I'm having is at the bottom of the page. There are two buttons that redirect to the next page, a large "forward" button and a classic “arrow” button. Both buttons are not links but HTML buttons. Using an element click selector I can now change correctly the page but when I get the second page the script stop working. I also created a structure which inside every page, executes the script again to download all the images, but for some strange reason as soon as the page has changed the script crashes because it cannot find new images to download. I think the problem is really simple but I don't understand how to proceed. I did a manual test using the data preview function. On the homepage everything works correctly (both image script and page change) if instead I go to the second page, the script that searches for images no longer works. For some strange reason if I click on “data preview”the images link are not found, I have to click twice to preview all the links. I attach a small video that explains my problem. I hope I explained myself and you someone can help me.*
link video -> [](http://Link video problem YOUTUBE)


{"_id":"shut-ionela","startUrl":[""],"selectors":[{"id":"link_immagini","type":"SelectorLink","parentSelectors":["_root"],"selector":".o_card_theme_card > a","multiple":true,"delay":0},{"id":"dowload-link","type":"SelectorPopupLink","parentSelectors":["link_immagini"],"selector":"button.oc_u_f.o_button_theme_primary","multiple":false,"delay":"0"},{"id":"conferma_checbox","type":"SelectorElementClick","parentSelectors":["link_immagini"],"selector":".Q_s_f div","multiple":false,"delay":0,"clickElementSelector":".Q_s_f div","clickType":"clickOnce","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueText"},{"id":"scarica_2","type":"SelectorPopupLink","parentSelectors":["link_immagini"],"selector":"button.Q_o_a","multiple":false,"delay":0},{"id":"avanti","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"button.z_b_e","multiple":true,"delay":0,"clickElementSelector":"button.z_b_e","clickType":"clickOnce","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueHTMLText"}]}

A bit hard to diagnose without access to site, but it looks like your main selector for avanti is incorrect. The main selector is usually not the same as the click selector; it should be the element which contains all the link_immagini elements (wrapper element). So, something higher up the HTML hierarchy.

This scenario is covered in:
Web Scraper pagination tutorial

It is the third type, "page loads data dynamically from the server" which is around 3:59

I suggest a click delay of at least 2000.