ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Emulation functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
EmulateCombo (Function)
In french: PiloteCombo
Emulates one of the following actions on a Combo Box control:
  • click on the button to expand the list of the Combo Box control.
  • select an element in a Combo Box control.
Example
// Select the 5th element of the Combo Box control
EmulateCombo(COMBO_Choice, 5)
Syntax

Emulating the Combo Box control via the identifier of the element Hide the details

EmulateCombo(<Combo Box control> [, <Element index>])
<Combo Box control>: Control name
Name of Combo Box control.
<Element index>: Optional integer
Index of the element to select in the Combo Box control. If this parameter is not specified, a click on the Combo Box control list drop-down button is simulated.

Emulating the Combo Box control via the caption of the element Hide the details

EmulateCombo(<Combo Box control> [, <Element caption>])
<Combo Box control>: Control name
Name of Combo Box control.
<Element caption>: Optional character string
Caption of element to select in the control (the first element with the sought caption will be selected).
Remarks
This function must be used in the code of automated tests only.
Component: wd290testexe.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help