How to scrape links from collapsed boxes?

Hi, can someone please help?

I want to scrape links to courses hidden under each "+" collapsing box on this page: https://www.ecornell.com/certificates/marketing/digital-marketing/

My problem is that only the first collapsing box link is scraped and creates a duplicate record.

I have set-up an elementclick parent with link type child, which goes through the collapsing fields (the click selectors properly) but the website changes the number in parentheses for each collapsing field (elementclick (div.panel:nth-of-type(1))), so I would need to have div.panel:nth-of-type(1), div.panel:nth-of-type(2) etc. I tried div.panel:nth-of-type([1-4]) which did not work for me.

Thanks for help!

link

Something like this. Page load delay:4000

{"_id":"forum-ecornell","startUrl":["https://www.ecornell.com/certificates/marketing/digital-marketing/"],"selectors":[{"id":"Course","type":"SelectorText","parentSelectors":["_root"],"selector":"div > h1","multiple":false,"regex":"" },{"id":"Click all plus","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"div.panel-group","multiple":true,"delay":2000,"clickElementSelector":".panel-title a.collapsed","clickType":"clickOnce","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueText"},{"id":"Heading","type":"SelectorText","parentSelectors":["Click all plus"],"selector":"h4 > a[aria-expanded='true']","multiple":false,"regex":"" },{"id":"Desc","type":"SelectorText","parentSelectors":["Click all plus"],"selector":".panel-collapse.in div.wp-content","multiple":false,"regex":"" }]}

That worked, thanks!