ContextMenu
Last updated
Last updated
Namespace: Progile.TRIO.BaseModel Assembly: Progile.TRIO.BaseModel (in Progile.TRIO.BaseModel.dll)
Object Progile.TRIO.BaseModel.OnScreenElement Progile.TRIO.BaseModel.ContextMenu
Creates a new ContextMenu instance. Context menu should be identified by an image of an icon or selection visible in the context menu.
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 opened context menu on the screen.
Name
Description
Opens the context menu, searches the image in the list (incl. scrolling) and selects it. If the image cannot be found, throws a TestStepAbortedException.
Opens the context menu, searches the image in the list (incl. scrolling) and selects it. If the image cannot be found, throws a TestStepAbortedException.
Opens the context menu, searches the text value in the list (incl. scrolling) and selects it. If the text cannot be found, throws a TestStepAbortedException.
Opens the context menu, searches the text value in the list (incl. scrolling) and selects it. If the text cannot be found, throws a TestStepAbortedException.
Opens the context menu, searches the first value from the parameter 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 the text cannot be found, throws a TestStepAbortedException.
Opens the context menu, searches the first value from the parameter 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 the text cannot be found, throws a TestStepAbortedException.
Opens a context menu and verifies if the provided value is present in the context menu (includes scrolling). Closes the context menu again.
Opens a context menu and verifies if the provided value is present in the context menu (includes scrolling). Closes the context menu again.
Name
Description
The size of the kernel that is used to blur the images when detecting the changes to define the list rectangle.
Size 0 means no blur, a common value for moderate blurring is 8 (approx. the size of a character). Default: 0
The image detection parameters that are used to find an image entry in the context menu.
The OCR parameters that are used to find a text entry in the context menu.
Controls whether a click or a hover is required to expand a submenu (Default: true)
Width of the border of the list that will be cut away on all sides to remove a border from the image that is passed to the OCR algorithm. Default: 3
The search rectangle in which changes are detected to define the menu rectangle. Default: AppBasic.Window
The tolerance value for changes that shall be ignored when detecting the changes to define the list rectangle. Default: 0.04