|
|
|
|
|
EmulateActionBar (Function) In french: PiloteActionBar Emulates an Action Bar during the automated tests run on a mobile device (Android or iOS). // 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 Name of the Action Bar to emulate. <Element>: Integer constant Element to emulate among the following constants: | | eabLeftButton | Simulates a press on the left button of Action Bar. | eabOption | Simulates a press on one of the options found in the Action Bar. <Advanced option> is used to specify the name of the option to be selected. | eabView | Simulates a press on one of the views found in the Action Bar. <Advanced option> is used to specify the number of the view to be selected. |
<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 automated tests run on the Android or iOS simulator.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|