summaryrefslogtreecommitdiff
path: root/uitest/ui_logger_dsl/General_commands.tx
blob: aa3645112569a20a92a543fb1ae4f552b1aca7cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
    This file for the log statments that is general for all application
    we can use it as general commands then relate it to its application 
    as we have in the starter command
    //====================================
    also I make set zoom to be general as it will be better
*/

import type_options

GeneralCommand:
    SideBar | setZoom_command | Select_command | General_type_command_on_UI_Object
;
SideBar:
    'From SIDEBAR ' 'Choose ' '{"PANEL":' name=STRING '}'
;
setZoom_command:
    'Set Zoom to ' zoom_value=INT
;
Select_command:
    'Select ' '{"OBJECT":' name=STRING '}'
;

//==================================================
//This Part if you want to type text in any of these UI elements This will be handled with this Grammar

General_type_command_on_UI_Object:
  'Type on' UI_Obj=STRING  what_to_type=Type_options 'from' parent_id=ID  
;