Export (0) Print
Expand All
Expand Minimize

SetValueAsComboBoxOptions Enumeration

Represents the flag values for configuring how to set the value of a ComboBox.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

[<FlagsAttribute>]
type SetValueAsComboBoxOptions

Member nameDescription
NoneUse the default.
UseLeftDropDownButtonUse the left drop-down button to expand the ComboBox. This member must be used with UseSelect.
UseSelectExpand the ComboBox and select the option from the drop-down list.
UseSetAsEditIf ComboBox is editable, use the SendKeys method to set the value in the edit box; otherwise, use the SendKeys method to set the value in the ComboBox.
DoNotVerifySendKeysUse with UseSetAsEdit to disable verification of the value.
DoNotVerifyMirrorLanguageIf the ComboBox is set for a left-to-right language, you cannot assume the location of the drop-down button. Use this flag if the button is not exposed as part of the user interface (UI) tree and the UI test framework is expected to guess the position of the button.
UseQueryIdUse the query ID that is passed to the UITechnologyManager.Search method to search in the ComboBox list.
PressEnterAfterTypingIndicates to use the SendKeys method to send "{Enter}" after sending text.
ExpandProgrammaticallyExpand the ComboBox programmatically.

Because a ComboBox also has an EditBox component, these values can be combined with OR by using the SetValueAsEditBoxOptions values.

Community Additions

ADD
Show:
© 2014 Microsoft