(WebAutomation) How to select dropdown list item?

dropdown

If you are trying to automate Web Page then you can use following code accordingly
WebAutomation.SetDropDownListValueByName BrowserInstance: Control: OptionNames:
OR
WebAutomation.SetDropDownListValueByIndex BrowserInstance: Control: OptionsIndeces: BrowserInstance: Control: OptionNames:

For Window application:
WebAutomation.SetDropDownListValueByName BrowserInstance: Control: OptionNames:
OR
UIAutomation.SetDropDownListValueByIndex DropDownList: OptionsIndeces: DropDownList: OptionsNames:

1 Like

WebAutomation.SetDropDownListValueByName BrowserInstance: Control: OptionNames:

In this script How to add OptionNames: ??

thanks .

@rushi.dalvi In OptionIndexes you can give index number. Kindly refer below code

WebAutomation.SetDropDownListValueByIndex BrowserInstance: Browserinstancename
Control: CotrolName
OptionsIndeces: 2

2 Likes

thanks…
its working ,
also i found another way ,i made control to listview item.

1 Like