Only stores the last page

Maybe I am missing something but the scraper only stores the last page of the scrape. The pagination works and the data preview on a single page works too. I tried using pagination and link instead of element click but neither worked. If anyone has a solution please help me, thanks in advance.

Url: https://suri.hacienda.pr.gov/_/

Sitemap:
{"id":"Suri-datos","startUrl":["https://suri.hacienda.pr.gov//"],"selectors":[{"id":"Volver a comenzar","parentSelectors":["_root"],"type":"SelectorElementClick","clickActionType":"real","clickElementSelector":"a.LinkButton","clickElementUniquenessType":"uniqueText","clickType":"clickOnce","delay":2000,"discardInitialElements":"do-not-discard","multiple":false,"selector":"a.LinkButton"},{"id":"Especilistas en planillas","parentSelectors":["_root"],"type":"SelectorElementClick","clickActionType":"real","clickElementSelector":"#l_Dg-1-22 span.ColIconText","clickElementUniquenessType":"uniqueText","clickType":"clickOnce","delay":2000,"discardInitialElements":"do-not-discard","multiple":false,"selector":"#l_Dg-1-22 span.ColIconText"},{"id":"Siguiente-pagina","parentSelectors":["_root","Siguiente-pagina"],"type":"SelectorElementClick","clickActionType":"real","clickElementSelector":"a#Dh-6_Vpgnext","clickElementUniquenessType":"uniqueText","clickType":"clickMore","delay":2000,"discardInitialElements":"do-not-discard","multiple":true,"selector":"a#Dh-6_Vpgnext"},{"id":"Nombre","parentSelectors":["lineas"],"type":"SelectorText","selector":"td.TC-Dh-1","multiple":false,"regex":""},{"id":"Ciudad","parentSelectors":["lineas"],"type":"SelectorText","selector":"td.TC-Dh-2","multiple":false,"regex":""},{"id":"Telefono","parentSelectors":["lineas"],"type":"SelectorText","selector":"td.TC-Dh-3","multiple":false,"regex":""},{"id":"Correo Electronico","parentSelectors":["lineas"],"type":"SelectorText","selector":"td.TC-Dh-5","multiple":false,"regex":""},{"id":"Wrapper","parentSelectors":["_root","Siguiente-pagina"],"type":"SelectorElement","selector":"table tbody","multiple":true},{"id":"lineas","parentSelectors":["Wrapper"],"type":"SelectorElement","selector":"tr","multiple":true}]}

Hi,

The 'Selector' value in the click selector should match the element that will contain the data after the click is completed. In your case, it matches the next button:

image

Please test this setup:

{"_id":"Suri-datos","startUrl":["https://suri.hacienda.pr.gov//"],"selectors":[{"clickActionType":"real","clickElementSelector":"a.LinkButton","clickElementUniquenessType":"uniqueText","clickType":"clickOnce","delay":2000,"discardInitialElements":"do-not-discard","id":"Volver a comenzar","multiple":false,"parentSelectors":["_root"],"selector":"a.LinkButton","type":"SelectorElementClick"},{"clickActionType":"real","clickElementSelector":"#l_Dg-1-22 span.ColIconText","clickElementUniquenessType":"uniqueText","clickType":"clickOnce","delay":2000,"discardInitialElements":"do-not-discard","id":"Especilistas en planillas","multiple":false,"parentSelectors":["_root"],"selector":"#l_Dg-1-22 span.ColIconText","type":"SelectorElementClick"},{"id":"Siguiente-pagina","paginationType":"clickMore","parentSelectors":["_root","Siguiente-pagina"],"selector":"a#Dh-6_Vpgnext","type":"SelectorPagination"},{"id":"Nombre","multiple":false,"parentSelectors":["lineas"],"regex":"","selector":"td.TC-Dh-1","type":"SelectorText"},{"id":"Ciudad","multiple":false,"parentSelectors":["lineas"],"regex":"","selector":"td.TC-Dh-2","type":"SelectorText"},{"id":"Telefono","multiple":false,"parentSelectors":["lineas"],"regex":"","selector":"td.TC-Dh-3","type":"SelectorText"},{"id":"Correo Electronico","multiple":false,"parentSelectors":["lineas"],"regex":"","selector":"td.TC-Dh-5","type":"SelectorText"},{"id":"Wrapper","multiple":true,"parentSelectors":["_root","Siguiente-pagina"],"selector":"table#Dh-6 tbody","type":"SelectorElement"},{"id":"lineas","multiple":true,"parentSelectors":["Wrapper"],"selector":"tr","type":"SelectorElement"}]}

Sorry for the super late response but it worked perfectly, thank you very much!!!