PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
EmulateActionBar (Function)
In French: PiloteActionBar
ODBCOLE DBAvailable only with these kinds of connection
Emulates an Action Bar during the automatic tests run on a mobile device (Android or iOS).
WINDEV This function is available in WINDEV only in order to be used in simulator mode. Used in a WINDEV application, this function has no effect.
Example
// Press the left button of the Action Bar
EmulateActionBar(WIN_MainWindow.ACTB_ActionBar, eabLeftButton)

// Select the top right option OPT_OptPlus
EmulateActionBar(WIN_MainWindow.ACTB_ActionBar, eabOption, OPT_OptPlus)

// Select the option at the bottom in the OPT_Menu
EmulateActionBar(WIN_MainWindow.ACTB_ActionBar, eabOption, OPT_Menu)

// Select the view #1 in the Action Bar
EmulateActionBar(WIN_MainWindow.ACTB_ActionBar, eabView, 1)
Syntax
EmulateActionBar(<Action Bar> , <Element> [, <Advanced Option>])
<Action Bar>: Character string (with or without quotes)
Name of the Action Bar to emulate.
<Element>: Integer constant
Element to emulate among the following constants:
eabLeftButtonSimulates a press on the left button of the Action Bar.
eabOptionSimulates a press on one of the options found in the Action Bar. <Advanced Option> is used to specify the name of the option to select.
eabViewSimulates a press on one of the views found in the Action Bar. <Advanced Option> is used to specify the number of the view to select.
<Advanced Option>: Optional variable
Additional option to specify.
  • If <Element> is set to eabOption, this parameter corresponds to the name of the option to select.
  • If <Element> is set to eabView, this parameter corresponds to the number of the view to select.
Remarks
This function must only be used in the code of automatic tests run on the Android or iOS simulator.
Minimum required version
  • Version 20
Comments
Click [Add] to post a comment