In TC 7, I am working with a DevExpress.XtraEditors.PopupContainerEdit (DevExpress version 220.127.116.11). Currently to select an option for the drop down list, I am using Sys.Keys("[F4][Down][Enter][Tab]"), however I would like to force a value / selection, as the selection I want may not always be the first option and could be anywhere in the list. Any suggestion in VB Script as to how I can accomplish this ?
We've examined the PopupContainerForm control located in the <Developer Express .NET>\Demos\XtraEditors\Bin\EditorsTutorials.ex e sample application. The control contains three parts: a PopupContainerEdit combo box control and two list box controls (ImageListBoxControl and CheckedListBoxControl). All the controls are specially supported by TestComplete (see the "Working With Custom Controls" help topic for more information), so you can just record the needed script and play it back - the recorded script will contain no coordinate clicks, only TestComplete wrapper method calls. Here is a sample script recorded with the sample application:
Set editorsTutorials = Sys.Process("EditorsTutorials")
editorsTutorials.FrmMainXtraEditors.WinFormsObject ("pcMain").gcContainer.ModulePopupContainerEdit.Wi nFormsObject("xtraTabControl1").xtraTabPage1.panel Control1.popupContainerEditSample.DropDown
Set popupContainerForm = editorsTutorials.WinFormsObject("PopupContainerFor m", "", 1)
Set splitContainerControl = popupContainerForm.popupContainerControlSample.spl itContainerControl1
Call splitContainerControl.WinFormsObject("SplitGroupPa nel", "splitContainerControl1_Panel1").ilbFont.ClickItem ("Tahoma")
Call splitContainerControl.WinFormsObject("SplitGroupPa nel", "splitContainerControl1_Panel2").clbStyle.CheckIte m("Bold", cbChecked)
Please try recording a script which performs the needed actions with your application. If the script does not look similar, please try recording a script with the sample application mentioned above. If the script recorded with the sample application does not look similar either, please check whether the Developer Express Components Support plug-in is installed and enabled in TestComplete ("Files | Install Extension...").