Select item from dropdown by item index

I am trying to select item from dropdown but browser language is different every time depending upon the settings, so if browser language is different then I am unable to select item from drop down but the item will always be at number 4 in the dropdown list, Any way to selet item from dropdown based on its position and not on name ? I am using select item activity. Browser is edge with IE mode and tag is similar to this : .

Hi,

There are some ways to achieve it.

  1. Get current options, then split it and select forth item.

image

  1. Use Inject JS Script activity

image

"function(e,v){e.selectedIndex=3;}"

Hope the above helps you.

Regards,

1 Like

Thanks, This is working.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.