Cannot figure out Element Click

Website : Members Directory

Sitemap (so far) : {"_id":"uk-lpa-providers","startUrl":["https://www.ipw.org.uk/Membership-Directory/"],"selectors":[{"id":"providers","multiple":true,"parentSelectors":["_root"],"selector":"div.company","type":"SelectorElement"},{"id":"business-name","multiple":false,"parentSelectors":["providers"],"regex":"","selector":"div.text","type":"SelectorText"}]}

In order to see the business address, phone and website I need the scraper to "click" details. I cannot figure out how to do this. I tried adding an element click but it didn't seem to work.

Any pointers would be appreciated

@supahoopsa Hi, it appears that you should be able to achieve this by using an 'Element click' selector in a combination with 'Element' selector.

Here's an example:

{"_id":"uk-lpa-providers","startUrl":["https://www.ipw.org.uk/Membership-Directory/"],"selectors":[{"clickElementSelector":"div.btnDetails:not(.open)","clickElementUniquenessType":"uniqueCSSSelector","clickType":"clickOnce","delay":2000,"discardInitialElements":"discard-when-click-element-exists","id":"details-click","multiple":true,"parentSelectors":["_root"],"selector":"body","type":"SelectorElementClick"},{"id":"wrapper","multiple":true,"parentSelectors":["_root"],"selector":"div.shown:nth-of-type(n+2)","type":"SelectorElement"},{"id":"phone","multiple":false,"parentSelectors":["wrapper"],"regex":"","selector":"span.orange:contains(\"Phone\") + a","type":"SelectorText"},{"id":"description","multiple":false,"parentSelectors":["wrapper"],"regex":"","selector":"div.col:nth-of-type(1)","type":"SelectorText"}]}

1 Like