siri
siri

Reputation: 81

How to select dropdown item(combobox) using winappdriver

I am automating desktop application using win app driver. I need to select a value from list of dropdown options. I am able to click on the dropdown but not able to select the drop down item based on the name. I tried implementing using windows element but I am getting error.

WindowsElement comboBox= (WindowsElement) winDriver.findElement(fundSponsorCombo);
comboBox.click();

Can anyone help me this. Appreciate your help.

Upvotes: 0

Views: 1326

Answers (1)

Shobhit Agrawal
Shobhit Agrawal

Reputation: 36

Try below

WindowsElement comboBox= (WindowsElement) winDriver.findElement(fundSponsorCombo);
comboBox.SendKeys("element to select");

Upvotes: 2

Related Questions