How to distinguish two similar options?

Hi Everyone!

I am having trouble getting the information of this product, I don't know how to get the desired data.
Please, can anyone help me?

Url: https://theone.vn/san-pham/ban-an-cong-nghiep-ba01-14

Sitemap:
{"_id":"test-theone","startUrl":["https://theone.vn/san-pham/ban-an-cong-nghiep-ba01-14"],"selectors":[{"clickElementSelector":"[aria-label='LOẠI CHÂN / KHUNG'] li","clickElementUniquenessType":"uniqueText","clickType":"clickOnce","delay":1000,"discardInitialElements":"do-not-discard","id":"LoaiChan","multiple":true,"parentSelectors":["_root"],"selector":"div.product-info","type":"SelectorElementClick"},{"clickElementSelector":"[aria-label='MẶT BÀN'] li","clickElementUniquenessType":"uniqueText","clickType":"clickOnce","delay":1000,"discardInitialElements":"do-not-discard","id":"MatBan","multiple":true,"parentSelectors":["LoaiChan"],"selector":"parent","type":"SelectorElementClick"},{"delay":0,"id":"LOẠI CHÂN / KHUNG","multiple":false,"parentSelectors":["MatBan"],"regex":"","selector":"ul,li:selected","type":"SelectorText"},{"delay":0,"id":"MẶT BÀN","multiple":false,"parentSelectors":["MatBan"],"regex":"","selector":"li.selected","type":"SelectorText"},{"delay":0,"id":"Name","multiple":false,"parentSelectors":["MatBan"],"regex":"","selector":"h1","type":"SelectorText"},{"delay":0,"id":"Price","multiple":false,"parentSelectors":["MatBan"],"regex":"","selector":"span .woocommerce-Price-amount bdi","type":"SelectorText"}]}

@gmeotestapp Hi, it appears that you can use the ''selected'' indicator.

Sitemap example:

{"_id":"test-theone","startUrl":["https://theone.vn/san-pham/ban-an-cong-nghiep-ba01-14"],"selectors":[{"clickElementSelector":"[aria-label='LOẠI CHÂN / KHUNG'] li","clickElementUniquenessType":"uniqueCSSSelector","clickType":"clickOnce","delay":1000,"discardInitialElements":"discard-when-click-element-exists","id":"LoaiChan","multiple":true,"parentSelectors":["_root"],"selector":"div.product-info","type":"SelectorElementClick"},{"clickElementSelector":"[aria-label='MẶT BÀN'] li","clickElementUniquenessType":"uniqueCSSSelector","clickType":"clickOnce","delay":1000,"discardInitialElements":"discard-when-click-element-exists","id":"MatBan","multiple":true,"parentSelectors":["LoaiChan"],"selector":"_parent_","type":"SelectorElementClick"},{"delay":0,"id":"LOẠI CHÂN / KHUNG","multiple":false,"parentSelectors":["MatBan"],"regex":"","selector":"select#pa_loai-chan + ul li.selected","type":"SelectorText"},{"delay":0,"id":"MẶT BÀN","multiple":false,"parentSelectors":["MatBan"],"regex":"","selector":"select#pa_mat-ban + ul li.selected","type":"SelectorText"},{"delay":0,"id":"Name","multiple":false,"parentSelectors":["MatBan"],"regex":"","selector":"h1","type":"SelectorText"},{"delay":0,"id":"Price","multiple":false,"parentSelectors":["MatBan"],"regex":"","selector":"span .woocommerce-Price-amount bdi","type":"SelectorText"}]}

1 Like

Hi viesturs!

It works very well, I understood, it took a long time to learn by myself, I am very grateful to you :smiling_face_with_three_hearts:

Thank you very much!