Not able to use historicalDatePicker and search button to scrape site

Hi, I am new is scraping will appreciate help on subject I am desperately trying to scrape data for previous date using datepicker option. but not able to do it

I succesed in scraping data which display as per active date usually at time 18:00 hours GMT+5 zone but not previous date data.

Thanks in advance

Url: Historical Data - Pakistan Stock Exchange (PSX)

Sitemap:
{"_id":"d_rep","startUrl":["https://dps.psx.com.pk/historical"],"selectors":[{"id":"date","parentSelectors":["_root"],"type":"SelectorText","selector":"div.topbar__status div","multiple":false,"regex":""},{"id":"pgnation","parentSelectors":["_root","pgnation"],"paginationType":"auto","selector":"span a.paginate_button","type":"SelectorPagination"},{"id":"table1","parentSelectors":["pgnation"],"type":"SelectorTable","multiple":true,"selector":"table","tableDataRowSelector":".tbl__body tr","tableHeaderRowSelector":".tbl__head tr","columns":[{"extract":true,"header":"SYMBOL","name":"SYMBOL"},{"extract":true,"header":"LDCP","name":"LDCP"},{"extract":true,"header":"OPEN","name":"OPEN"},{"extract":true,"header":"HIGH","name":"HIGH"},{"extract":true,"header":"LOW","name":"LOW"},{"extract":true,"header":"CLOSE","name":"CLOSE"},{"extract":true,"header":"CHANGE","name":"CHANGE"},{"extract":true,"header":"CHANGE (%)","name":"CHANGE (%)"},{"extract":true,"header":"VOLUME","name":"VOLUME"}]}]}

@Leo0 Hello, you should be able to achieve this by implementing additional 'Element click' selectors that would execute all of the necessary clicks in order to load the renewed data for a particular date.

Example:

{"_id":"d_rep","startUrl":["https://dps.psx.com.pk/historical"],"selectors":[{"clickElementSelector":"input#historicalDatePicker","clickElementUniquenessType":"uniqueCSSSelector","clickType":"clickOnce","delay":2000,"discardInitialElements":"discard-when-click-element-exists","id":"click-1","multiple":true,"parentSelectors":["_root"],"selector":"body","type":"SelectorElementClick"},{"clickElementSelector":"td[class=\"available\"]:contains(\"27\")","clickElementUniquenessType":"uniqueCSSSelector","clickType":"clickOnce","delay":2000,"discardInitialElements":"discard-when-click-element-exists","id":"click-2","multiple":true,"parentSelectors":["_root"],"selector":"body","type":"SelectorElementClick"},{"clickElementSelector":"button#historicalSearchBtn","clickElementUniquenessType":"uniqueCSSSelector","clickType":"clickOnce","delay":7500,"discardInitialElements":"discard-when-click-element-exists","id":"click-3","multiple":true,"parentSelectors":["_root"],"selector":"body","type":"SelectorElementClick"},{"id":"selected-date","multiple":false,"parentSelectors":["_root"],"regex":"","selector":".drp-selected","type":"SelectorText"},{"id":"pagination","paginationType":"clickMore","parentSelectors":["_root","pagination"],"selector":"a.next","type":"SelectorPagination"},{"id":"wrapper","multiple":true,"parentSelectors":["pagination"],"selector":".tbl__body tr","type":"SelectorElement"},{"id":"symbol","multiple":false,"parentSelectors":["wrapper"],"regex":"","selector":"td:nth(0)","type":"SelectorText"},{"id":"LDCP","multiple":false,"parentSelectors":["wrapper"],"regex":"","selector":"td:nth(1)","type":"SelectorText"},{"id":"OPEN","multiple":false,"parentSelectors":["wrapper"],"regex":"","selector":"td:nth(2)","type":"SelectorText"}]}

@ViestursWS Many thanks for your kind assistance I just check today as I was travelling
I work find and great source for learning for me as well

Many Thanks

Regards
Leo