Help for drop down

Hello
in my case dropdown not working well or i cant use it properly please help me?

URL:

Dropdown path:
Xpath: /html/body/div[6]/section/div/div/div[2]/div[6]/div[2]/div[2]/div/div[5]/div/select

Class:
class="form-control form-control-sm select2 header-filter"

i just need to change dropdown select every time:
<option value="1" selected="selected">Тийм</option>
<option value="0">Үгүй</option>
to
<option value="1">Тийм</option>
<option value="0" selected="selected">Үгүй</option>

please help me?

someone help me please

Hi,

Here is an example of the dropdown click:

{"_id":"legalinfo-mn","startUrl":["https://legalinfo.mn/mn/law?page=law&cate=27&active=1&page=1&sort=title&page=1"],"selectors":[{"clickActionType":"real","clickElementSelector":"select[name=\"filteractive\"] option","clickElementUniquenessType":"uniqueCSSSelector","clickType":"clickOnce","delay":1000,"discardInitialElements":"do-not-discard","id":"dropdown","multiple":true,"parentSelectors":["_root"],"selector":"body","type":"SelectorElementClick"}]}
1 Like

thank you but it rotates.

how to select click on only one element?

<option value="0" selected="selected">Үгүй</option>

Change the selector value to: select[name="filteractive"] option:contains('Үгүй')

1 Like

thank you it works like charm :star_struck:. and i get it.

1 Like