Describe the problem.
My sitemap does not scrape anything for given URL if Click selector is "a.ui-paginator-page". If it is "a.ui-paginator-next", then the data is scraped.
Actually, it iterates through all the pages, till no new elements are found, terminates and no data scraped.
But when I change Click selector of "pag" from "a.ui-paginator-page" to "a.ui-paginator-next", it exactly clicks 1 time on "Dalsia" (equivalent of Next) and terminates and the data IS actually retrieved.
I am really trying hard to understand this strange behaviour, but to no avail. Why the click on Next is OK, but clicking on numbers actually is not? As for clicking numbers, completly iterating through all pages, no results are scraped.
Url: https://portal.unionzp.sk/onlinepobocka/pub/zoznam-dlznikov
Sitemap:
{"_id":"union","startUrl":["https://portal.unionzp.sk/onlinepobocka/pub/zoznam-dlznikov"],"selectors":[{"id":"pag","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"div.ui-datatable-tablewrapper","multiple":false,"delay":"1800","clickElementSelector":"a.ui-paginator-page","clickType":"clickOnce","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueText"},{"id":"tab","type":"SelectorTable","parentSelectors":["_root","pag"],"selector":"table","multiple":true,"columns":[{"header":"Priezvisko a Meno / Názov","name":"Priezvisko a Meno / Názov","extract":true},{"header":"IČO","name":"IČO","extract":true},{"header":"Pohľadávka","name":"Pohľadávka","extract":true},{"header":"Nárok ZS","name":"Nárok ZS","extract":true},{"header":"Adresa","name":"Adresa","extract":true},{"header":"Námietka","name":"Námietka","extract":true}],"delay":0,"tableDataRowSelector":"tr.ui-widget-content","tableHeaderRowSelector":"#j_idt163\:table_head tr"}]}
I suspect that there is some bug in webscraper, as this really does not make any sense to me.
Thanks for advice.