How to Handle this Dropdown Box

How to Handle this Dropdown Box

https://www.woolworths.co.za/storelocator

Hi @gunamob

You will have to make 5 clicks because the dropdown list is discovered only after the dropdown button is clicked.

My example:

{"_id":"woolworths-co","startUrl":["https://www.woolworths.co.za/storelocator"],"selectors":[{"id":"click-1","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"html","multiple":true,"delay":"800","clickElementSelector":"div.qty-height:nth(0) span:nth(0)","clickType":"clickOnce","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueCSSSelector"},{"id":"click-2","type":"SelectorElementClick","parentSelectors":["click-1"],"selector":"_parent_","multiple":true,"delay":"800","clickElementSelector":"ul#provience > li:contains(\"Eastern Cape\")","clickType":"clickOnce","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueText"},{"id":"click-3","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"html","multiple":true,"delay":"800","clickElementSelector":"div.qty-height:nth(1) span:nth(0)","clickType":"clickOnce","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueCSSSelector"},{"id":"click-4","type":"SelectorElementClick","parentSelectors":["click-3"],"selector":"_parent_","multiple":true,"delay":"800","clickElementSelector":"ul#suburb > li:contains(\"Abbotsford (East London)\")","clickType":"clickOnce","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueText"},{"id":"click-5","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"html","multiple":true,"delay":"800","clickElementSelector":"a.button","clickType":"clickOnce","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueCSSSelector"},{"id":"shops","type":"SelectorElement","parentSelectors":["click-5"],"selector":"div.branchDetails","multiple":true,"delay":0},{"id":"shope-name","type":"SelectorText","parentSelectors":["shops"],"selector":"h2","multiple":false,"regex":"","delay":0}]}

Hope it helps.

1 Like

Thank you Viesturs... How could we navigate all locations one by one and get the results.

@gunamob Knowing that you will have to perform the search each time and the dropdown disappears after you press the search button, for each location you should make a separate sitemap.

@ViestursWS Make sense. Thanks for your help.