ManagedMenuStrip¶
Managed MenuStrip.
UI element class: System.Windows.Forms.MenuStrip
Extends ManagedObject
Extends SeSSimulatedObject
Behavior Pattern: ManagedMenuBehavior
Property Summary¶
Property | Description | Getter | Setter |
---|---|---|---|
IsEnabled | Checks if given menu item is enabled. | GetIsEnabled |
Action Summary¶
Action | Description |
---|---|
DoClickItem | Perform Click on the navigation item |
DoFullText | Returns text representation of the menu or saves it to a file. |
DoGetSubmenuCount | Gets the number of submenu items for a given menu path. |
DoGetSubmenuProperty | Gets submenu property. |
DoGetSubmenuText | Gets submenu text. |
DoMenu | Performs click on the menu item. |
Property Detail¶
IsEnabled¶
Checks if given menu item is enabled.
Getter Parameters:
Name | Type | Description |
---|---|---|
path | string | Path from the menu root to a leaf item with components delimited by separator parameter. |
separator | string | Separator character. Possible values: ";", ",", "\", "/" Optional, Default: ";". |
Type: boolean
Accessors: GetIsEnabled
value = SeS('SomeManagedMenuStrip').GetIsEnabled(/**string*/ path, /**string*/ separator)
Action Detail¶
DoClickItem¶
Perform Click on the navigation item
SeS('SomeManagedMenuStrip').DoClickItem(menuItemName)
Parameters:
Name | Type | Description |
---|---|---|
menuItemName | string | Name of MenuStip's item to click |
Returns:
boolean: 'true' if success, 'false' otherwise.
DoFullText¶
Returns text representation of the menu or saves it to a file.
SeS('SomeManagedMenuStrip').DoFullText(separator, filePath, append, includeSeparators)
Parameters:
Name | Type | Description |
---|---|---|
separator | string | Separator character. Possible values: ";", ",", "\", "/" Optional, Default: ";". |
filePath | string | Name of a file that should hold text representation of the menu. |
append | boolean | If 'false' then file should be overwritten, if 'true' then data should be appended. Optional, Default: "false". |
includeSeparators | boolean | If 'true' then menu separators are included to the result. Optional, Default: "false". |
Returns:
number |
boolean: Text representation of the menu, 'true' if the file was successfully written, 'false' otherwise.
DoGetSubmenuCount¶
Gets the number of submenu items for a given menu path.
SeS('SomeManagedMenuStrip').DoGetSubmenuCount(path, separator)
Parameters:
Name | Type | Description |
---|---|---|
path | string | Path from the menu root to a leaf item with components delimited by separator parameter. |
separator | string | Separator character. Possible values: ";", ",", "\", "/" Optional, Default: ";". |
Returns:
number |
boolean: Number of submenu items, 'false' otherwise.
DoGetSubmenuProperty¶
Gets submenu property.
SeS('SomeManagedMenuStrip').DoGetSubmenuProperty(path, index, property, separator)
Parameters:
Name | Type | Description |
---|---|---|
path | string | Path from the menu root to a leaf item with components delimited by separator parameter. |
index | number | Index of the submenu. |
property | string | Name of a property. Available properties can be seen in Java Spy. |
separator | string | Separator character. Possible values: ";", ",", "\", "/" Optional, Default: ";". |
Returns:
string |
boolean: Submenu property, 'false' otherwise.
DoGetSubmenuText¶
Gets submenu text.
SeS('SomeManagedMenuStrip').DoGetSubmenuText(path, index, separator)
Parameters:
Name | Type | Description |
---|---|---|
path | string | Path from the menu root to a leaf item with components delimited by separator parameter. |
index | number | Index of the submenu. |
separator | string | Separator character. Possible values: ";", ",", "\", "/" Optional, Default: ";". |
Returns:
string |
boolean: Submenu text, 'false' otherwise.
DoMenu¶
Performs click on the menu item.
SeS('SomeManagedMenuStrip').DoMenu(path, separator)
Parameters:
Name | Type | Description |
---|---|---|
path | string | Path from the menu root to a leaf item with components delimited by separator parameter. |
separator | string | Separator character. Possible values: ";", ",", "\", "/" Optional, Default: ";". |
Returns:
boolean: 'true' if success, 'false' otherwise.