This method is not supported in web tests (including cross-platform web tests) that use XPath expressions and CSS selectors to locate web elements. This method can be only used in tests that locate web objects by using internal identification properties provided by TestComplete. |
Description
The CloseUp
action closes the control’s drop-down list.
Declaration
TestObj.CloseUp()
TestObj | A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section | |||
Result | None |
Applies To
The method is applied to the following objects:
AngularUI Bootstrap Dropdown, AngularUI Select, Bootstrap Dropdown and 32 more objects, Developer Express ASPxComboBox, Developer Express ASPxDateEdit, Developer Express BlobEdit, Developer Express CalcEdit, ColorEdit and PopupContainerEdit, Developer Express ColorComboBox, Developer Express ComboBox, Developer Express ComboBox, Developer Express ComboBox (VCL), Developer Express DateEdit, Developer Express ImageComboBox, DropDownEditorButton, Ext JS Combo Box, Infragistics UltraComboBox, Infragistics WebCombo, Java Swing ComboBox, JavaFX ChoiceBox, JavaFX ColorPicker, JavaFX ComboBox, Oracle Forms Combo Box, Oracle Forms Pop List, Qt ComboBox, Silverlight ComboBox, Syncfusion ComboBox Controls, Syncfusion ComboDropDown, Telerik RadComboBox for ASP.NET AJAX, Telerik RadComboBox for WinForms, Telerik RadComboBox for WPF, Telerik RadDropDownList for WinForms, Telerik RadMultiColumnComboBox for WinForms, Web Combo Box, Win32 ComboBox, WPF ComboBox « Collapse the list
View Mode
To view this method in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.
Result Value
None.
Remarks
To check the current list state, use the wIsDropDownOpened
property. If you are testing Java Swing ComboBox, Qt ComboBox, Syncfusion ComboBox Controls, Syncfusion ComboDropDown, Telerik RadComboBox for ASP.NET AJAX, Win32 ComboBox or WPF ComboBox controls, use the wIsDropDownListOpened
property instead.
Example
You can find an example demonstrating how to use the CloseUp
method of Android spinner controls in the Working With Drop-Down Lists topic. You can work with other drop-down controls in a similar way.
See Also
Working With Drop-Down Lists in Desktop Windows Applications
wIsDropDownListOpened Property (Combo Box Controls)
wIsDropDownOpened Property (Combo Box Controls)