DropdownMenu
DropdownMenu Class
Namespace: Progile.TRIO.BaseModel Assembly: Progile.TRIO.BaseModel (in Progile.TRIO.BaseModel.dll)
Inheritance Hierarchy:
Object Progile.TRIO.BaseModel.OnScreenElement Progile.TRIO.BaseModel.Dropdown Progile.TRIO.BaseModel.DropdownMenu
Constructors
DropdownMenu (IAppBasics, string, ImageReference, bool, bool, IImageFilter[ ])
Creates a new DropdownMenu instance. Instead of the normal Dropdown where we identify the label and then detect the Textbox at the Hotspot location, for a DropdownMenu the Label is clicked (or hovered, depending on the parameter: hoverToExpand) directly to expand the menu list.
Syntax:
Parameter | Description |
appBasics | Type: Progile.TRIO.BaseModel.IAppBasics The interface for the AppBasics, that is available on every BaseScreen. Allows access to the testerinterface and the application window. |
displayName | Type: String The name of the element that will be used for logging and reporting of exceptions (customer facing). |
imageReference | Type: ImageReference The image that will be used to locate the DropdownMenu on the screen. |
hoverToExpand | Type: Boolean When true, instead of clicking the menu to expand it, we simply hover over it |
[opensOnSide] | Type: Boolean Whether the dropdown menu will open on the side of the label (e.g. for a typical submenu). Default is false, i.e. list will open below or above |
[filters] | Type: IImageFilter[ ] Typically a Select filter indicating the area of interest for the image search. |
DropdownMenu (IAppBasics, string, string, bool, bool, IImageFilter[ ])Creates a new DropdownMenu instance. Instead of the normal Dropdown where we identify the label and then detect the Textbox at the Hotspot location, for a DropdownMenu the Label is clicked (or hovered, depending on the parameter: hoverToExpand) directly to expand the menu list.
Syntax:
Parameter | Description |
appBasics | Type: Progile.TRIO.BaseModel.IAppBasics The interface for the AppBasics, that is available on every BaseScreen. Allows access to the testerinterface and the application window. |
displayName | Type: String The name of the element that will be used for logging and reporting of exceptions (customer facing). |
menuLabelText | Type: String The search text that will be used to locate the dropdown menu on the screen. |
hoverToExpand | Type: Boolean When true, instead of clicking the menu to expand it, we simply hover over it |
[opensOnSide] | Type: Boolean Whether the dropdown menu will open on the side of the label (e.g. for a typical submenu). Default is false, i.e. list will open below or above |
[filters] | Type: IImageFilter[ ] Typically a Select filter indicating the area of interest for the image search. |
Methods
Name | Description |
Opens the dropdown list and returns a rectangle for the list (based on rectangle with changes after expanding dropdown list). | |
Opens the dropdown menu, searches the first value from selections in the list and selects it to open the next submenu. Then the next value is found in the submenu and so on. If one of the texts cannot be found, throws a TestStepAbortedException. |
Properties
Name | Description |
When opening the dropdown, how big the Filter should be where we look for changes. Decrease when too many changes are found, increase when needed change is not found. Used Filter is also shown in log when registering for update check before the click. Default: Size(100, 50) |
Last updated