selecting combobox item using ui automation

后端 未结 9 1915
猫巷女王i
猫巷女王i 2021-02-06 02:45

how do I select ComboBox\'s SelectedIndex = -1?

I wrote a code to automate testing:

AutomationElement aeBuildMachine = null;
int count =         


        
9条回答
  •  一个人的身影
    2021-02-06 03:06

    http://msdn.microsoft.com/de-de/library/system.windows.automation.selectionitempattern_members(v=VS.85).aspx

    That is the answer to your question as I understood it.

    But.. is it really your question?

    Anyhow, you can add or remove SelectableItems from a selection which - I suppose - belong to its parent, same goes for some other things like checking whether they are selected.

提交回复
热议问题