Scraping a page with an "accordion" menu

Describe the problem.
I'm trying to scrape a page that has an accordion menu. I would like to pull email, address, country name, director name, etc. from within each element. I set up an element click selector as parent, but when I try to add text selectors under the click selector parent, I'm unable to select any of the items I want (emails, addresses, etc.) The error message I'm getting is is "Parent does not contain selected element." This should be a simple page to scrape, but I'm stuck. Any advice?

Url: https://wfneurology.org/member-societies

1 Like

Even I'm waiting for an answer to this since I intend to scrape a similar kind of website "https://covid-19.ontario.ca/assessment-centre-locations/" for my academic assignment.
Any kind of help will be appreciated

Accordions can be tricky. Try this with Page load delay: 7000

{"_id":"forum-wfneurology-test-b","startUrl":["https://wfneurology.org/member-societies"],"selectors":[{"id":"Click n Scrape","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"div.accordion","multiple":true,"delay":"2300","clickElementSelector":"div.accordion h2:not([class$='_open']) ","clickType":"clickOnce","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueCSSSelector"},{"id":"Organization","type":"SelectorText","parentSelectors":["Click n Scrape"],"selector":"h2[class$='_open']","multiple":true,"regex":"" },{"id":"Address1","type":"SelectorText","parentSelectors":["Click n Scrape"],"selector":"div.location_details.location_1 div.location_address","multiple":false,"regex":"" },{"id":"Address2","type":"SelectorText","parentSelectors":["Click n Scrape"],"selector":"div.location_details.location_2 div.location_address","multiple":false,"regex":"" },{"id":"Email1","type":"SelectorText","parentSelectors":["Click n Scrape"],"selector":"div.location_details.location_1 span.single_location_email a","multiple":false,"regex":"" },{"id":"Email2","type":"SelectorText","parentSelectors":["Click n Scrape"],"selector":"div.location_details.location_2 span.single_location_email a","multiple":false,"regex":"" },{"id":"Phone","type":"SelectorText","parentSelectors":["Click n Scrape"],"selector":"span.single_location_phone","multiple":false,"regex":"" },{"id":"Contact block 1","type":"SelectorText","parentSelectors":["Click n Scrape"],"selector":"div.location_1","multiple":false,"regex":"" },{"id":"Contact block 2","type":"SelectorText","parentSelectors":["Click n Scrape"],"selector":"div.location_2","multiple":false,"regex":"" }]}

hey @leemeng, thank you so much for this. Could you please help me out for my case too ????