TestResults.io
  • What is TestResults.io
  • System Architecture
  • Regulated Markets
    • Health Care Industry
    • Financial Services Industry
  • What's new?
    • Update Instruction
      • Update of the Designer extension in Visual Studio
      • Update the Execution Engine
      • Update the Base- and Environment Models
    • Migration to new project file
  • Designer
    • Overview
    • First Steps
    • Installation
    • TestResults.io solution
    • The development environment
      • Tool Window Overview
        • Test Environments
          • Steps to configure a SUT VM
          • How to access files on the system under test
        • Remote Viewer
          • Control Mode
          • Capture Mode
          • Screen Editor
          • Capture Single Image
        • Screen Explorer
        • Test Case Designer
        • Image Explorer
        • API Testing
        • TestResults.io options
          • Engines
          • Servers
    • Test Cases
      • Adding Test Cases
      • Test Case structure
      • Simple Test Case (Example)
      • Executing your Test Case
      • Generating Test Containers
      • Publishing Test Cases
      • Execution Variables
    • Software Models
      • Adding SW Models
      • Referencing the Model in the Test Case
      • Generating Test Containers
      • Publishing SW Models
      • Screens and Screen Elements
        • Tables
        • Visual Sense
        • Custom Screen Elements
    • Installers
      • Adding Installers
      • Generating Test Containers
      • Publishing Installers
    • Automation Framework Reference
      • Attributes
      • Enumerations
      • Filters
        • IImageFilter Interface
        • Select
        • Resize
      • GlobalEngineParameters
      • ImageDetectionParameters
      • ImageReference
      • Interfaces
        • ITester Interface
          • ITester Methods
          • ITester Properties
        • ITestee Interface
          • ITestee Methods
        • IConnections Interface
          • IConnections Methods
          • IConnections Properties
        • IDebug Interface
        • IEngineResult
        • IHelpers Interface
        • IImageHelper Interface
          • IImageHelper Methods
        • IKeyboard Interface
          • IKeyboard Methods
        • IMouse Interface
          • IMouse Methods
          • IMouse Properties
        • IReport Interface
          • IReport Methods
        • ISUTConnection Interface
      • OcrEngineParameters
        • Best practise
        • IronOcrEngineParameters
        • LEADOcrEngineParameters
        • OcrEngineRelatedCharacters
        • OcrPreprocessingParameters
      • ResultRectangle
      • SutNotReadyException
      • TestStepAbortedException
    • FAQ
      • Two-factor authentication (2FA) and One Time Passwords (OTP)
      • Receive and verify Emails
      • Using Excel as test data source
      • Verify PDF Content
  • Portal
    • Overview
    • First Steps
    • User's Guide
      • Login
      • Projects
      • Dashboard
      • Test Cases
      • Software & Environments
      • Test Sets
      • Job Queue
      • Management
      • Notifications Summary
    • Automation Engineer's Guide
      • Test Automation Workflow
      • Automating a test case
      • Enabling Software & Environments
    • REST API Reference
      • Authentication
      • Projects
      • Test Sets
      • Test Cases
      • Test Plans
      • Test Reports
      • Files
      • Software
      • Environments
      • Untitled
      • Executions
      • Favorites
      • Statistics
      • User Management
      • Customer Management
      • Notifications
      • Configurations
      • Invoicing
  • Models
    • Overview
    • Base Model
      • BaseScreen
        • BaseScreen Properties
        • BaseScreen Methods
      • OnScreenElement
        • OnScreenElement Methods
        • OnScreenElement Properties
      • Primitives
        • Button
          • Button Methods
          • Button Properties
        • Checkbox
          • Checkbox Methods
        • ContextMenu
          • ContextMenu Methods
          • ContextMenu Properties
        • Dropdown
          • Dropdown Methods
          • Dropdown Properties
        • DropdownMenu
          • DropdownMenu Methods
          • DropdownMenu Properties
        • GenericScroller
          • GenericScroller Methods
          • GenericScroller Properties
        • HorizontalScroller
        • IconButton
          • IconButton Properties
        • Label
        • LabelWithButton
          • LabelWithButton Properties
        • LabelWithCheckbox
          • LabelWithCheckbox Properties
        • LabelWithValue
          • LabelWithValue Methods
          • LabelWithValue Properties
        • PwTextBox
          • PwTextBox Methods
        • TextBox
          • TextBox Methods
          • TextBox Properties
        • Tables and lists
          • Column
            • Column Methods
            • Column Properties
          • ItemList
            • ItemList Methods
            • ItemList Properties
          • Row
            • Row Methods
            • Row Properties
          • TableBase
            • TableBase Methods
            • TableBase Properties
        • LabelWithElementBase
          • LabelWithElementBase Properties
      • Enumerations
      • Extensions
        • EngineResultExtensions Methods
        • EnumExtensions Methods
        • ReportExtensions Methods
        • StringExtensions Methods
        • TesterConnectionExtensions Methods
        • TesterDebugExtensions Methods
        • TesterHelperExtensions Methods
        • TesterMouseExtensions Methods
        • TesterOnScreenElementExtensions
        • TesterSelectExtensions Methods
      • Helper Classes
        • BaseModelHelpers
          • BaseModelHelpers Methods
          • BaseModelHelpers Properties
        • Attributes for Designer
        • ListHelpers
      • Exceptions
        • ElementNotFoundException
        • InteractionFailedException
        • ScreenNotFoundException
      • Interfaces
        • IAppBasics Interface
          • IAppBasics Methods
          • IAppBasics Properties
        • IBrowser
        • ICommandLineWindow
        • IScroller Interface
          • IScroller Methods
          • IScroller Properties
        • ISutLocale Interface
          • ISutLocale Methods
          • ISutLocale Properties
        • ISystemHelpers
        • ISystemInteractions
        • IWindow
    • Environment Model
      • Windows
        • Screens
          • CmdWindow
            • CmdWindow Methods
            • CmdWindow Properties
          • FileDialog
            • FileDialog Methods
            • FileDialog Properties
          • FileExplorer
            • FileExplorer Properties
          • RunWindow
            • RunWindow Methods
            • RunWindow Properties
          • Window
            • Window Methods
            • Window Properties
        • SutLocale
          • SutLocale Methods
          • SutLocale Properties
        • SystemHelpers
          • SystemHelpers Methods
          • SystemHelpers Properties
        • SystemInteractions
        • WebBrowser
          • Browser
            • Browser Methods
            • Browser Properties
          • BrowserScroller
            • BrowserScroller Methods
            • BrowserScroller Properties
          • AuthenticationDialog
            • AuthenticationDialog Methods
            • AuthenticationDialog Properties
          • DownloadDialog
            • DownloadDialog Methods
            • DownloadDialog Properties
        • EnvironmentModel Enumerations
        • Interfaces
          • IWebAppBasics
            • IWebAppBasics Property
Powered by GitBook
On this page
  • SelectImage
  • SelectImage(Point, ImageReference)
  • SelectImage(IEngineResult, ImageReference)
  • SelectValue
  • SelectValue(Point, String)
  • SelectValue(IEngineResult, String)
  • SelectValueFromSubmenu
  • SelectValueFromSubmenu(Point, String[])
  • SelectValueFromSubmenu(IEngineResult, String[])
  • VerifyValueInList
  • VerifyValueInList(Point, String, Boolean)
  • VerifyValueInList(IEngineResult, String, Boolean)

Was this helpful?

  1. Models
  2. Base Model
  3. Primitives
  4. ContextMenu

ContextMenu Methods

PreviousContextMenuNextContextMenu Properties

Last updated 1 year ago

Was this helpful?

SelectImage

Overload List

Name

Description

Opens the context menu, searches the image in the list (incl. scrolling) and selects it.

Opens the context menu, searches the image in the list (incl. scrolling) and selects it.

SelectImage(Point, ImageReference)

Opens the context menu, searches the image in the list (incl. scrolling) and selects it. If the image cannot be found, throws a .

Syntax:

public virtual void SelectImage(
	Point point, 
	ImageReference imageReference
)

Parameters:

Parameter

Description

point

imageReference

Exceptions:

Exception

Condition

When the context menu could not be found on the screen.

When the context menu could not be opened after the configured amount of retries.

When the image cannot be found in the context menu.

SelectImage(IEngineResult, ImageReference)

Syntax:

public virtual void SelectImage(
	IEngineResult position, 
	ImageReference imageReference
)

Parameters:

Parameter

Description

position

imageReference

Exceptions:

Exception

Condition

When the context menu could not be found on the screen.

When the context menu could not be opened after the configured amount of retries.

When the image cannot be found in the context menu.

SelectValue

Overload List

Name

Description

Opens the context menu, searches the text value in the list (incl. scrolling) and selects it.

Opens the context menu, searches the text value in the list (incl. scrolling) and selects it.

SelectValue(Point, String)

Syntax:

public virtual void SelectValue(
	Point point, 
	string value
)

Parameters:

Parameter

Description

point

value

Exceptions:

Exception

Condition

When the context menu could not be found on the screen.

When the context menu could not be opened after the configured amount of retries.

When the text value cannot be found in the context menu.

SelectValue(IEngineResult, String)

Syntax:

public virtual void SelectValue(
	IEngineResult position, 
	string value
)

Parameters:

Parameter

Description

position

value

Exceptions:

Exception

Condition

When the context menu could not be found on the screen.

When the context menu could not be opened after the configured amount of retries.

When the text value cannot be found in the context menu.

SelectValueFromSubmenu

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.

Overload List

Name

Description

SelectValueFromSubmenu(Point, String[])

Syntax:

public void SelectValueFromSubmenu(
        Point point, 
        params string[] selections
)

Parameters:

Parameter

Description

point

selections

Exceptions:

Exception

Condition

When the context menu could not be found on the screen.

When the context menu could not be opened after the configured amount of retries.

When the text value cannot be found in the context menu.

SelectValueFromSubmenu(IEngineResult, String[])

Syntax:

public void SelectValueFromSubmenu(
        IEngineResult position, 
        params string[] selections
)

Parameters:

Parameter

Description

position

selections

Exceptions:

Exception

Condition

When the context menu could not be found on the screen.

When the context menu could not be opened after the configured amount of retries.

When the text value cannot be found in the context menu.

VerifyValueInList

Opens a context menu and verifies if the provided value is present in the context menu (includes scrolling). Closes the context menu again.

Overload List

Name

Description

VerifyValueInList(Point, String, Boolean)

Syntax:

public virtual bool VerifyValueInList(
        Point point, 
        string value, 
        bool takeScreenshot = true
        )

Parameters:

Parameter

Description

point

value

takeScreenshot

Return Value:

Whether or not the text value could be found in the context menu.

Exceptions:

Exception

Condition

When the context menu could not be found on the screen.

When the context menu could not be opened after the configured amount of retries.

VerifyValueInList(IEngineResult, String, Boolean)

Syntax:

public virtual bool VerifyValueInList(
        IEngineResult position, 
        string value, 
        bool takeScreenshot = true
)

Parameters:

Parameter

Description

position

value

takeScreenshot

Return Value:

Whether or not the text value could be found in the context menu.

Exceptions:

Exception

Condition

When the context menu could not be found on the screen.

When the context menu could not be opened after the configured amount of retries.

Type: The coordinates on the screen where the context shall be opened by right-clicking

Type: The image reference that shall be selected in the context menu.

Opens the context menu, searches the image in the list (incl. scrolling) and selects it. If the image cannot be found, throws a .

Type: The position of the element on which the context shall be opened by right-clicking

Type: The image reference that shall be selected in the context menu.

Opens the context menu, searches the text value in the list (incl. scrolling) and selects it. If the text cannot be found, throws a .

Type: The coordinates on the screen where the context shall be opened by right-clicking

Type: The text that shall be selected in the context menu.

Opens the context menu, searches the text value in the list (incl. scrolling) and selects it. If the text cannot be found, throws a .

Type: The position of the element on which the context shall be opened by right-clicking

Type: The text that shall be selected in the context menu.

If the text cannot be found, throws a .

The position where the context menu shall be opened by right-clicking is provided as a

The position where the context menu shall be opened by right-clicking is provided as an

Type: The coordinates on the screen where the context shall be opened by right-clicking

Type: [] The submenus and the value that shall be selected from the context menu. E.g. "File", "New", "Project"

Type: The position of the element on which the context shall be opened by right-clicking

Type: [] The submenus and the value that shall be selected from the context menu. E.g. "File", "New", "Project"

The position where the context menu shall be opened by right-clicking is provided as a

The position where the context menu shall be opened by right-clicking is provided as an

Type: The coordinates on the screen where the context shall be opened by right-clicking

Type: The text that shall be verified in the context menu.

Type: When true, a screenshot of the expanded context menu is taken, showing the value to verify.

Type: The position of the element on which the context shall be opened by right-clicking

Type: The text that shall be verified in the context menu.

Type: When true, a screenshot of the expanded context menu is taken, showing the value to verify.

TestStepAbortedException
TestStepAbortedException
TestStepAbortedException
TestStepAbortedException
TestStepAbortedException
Point
ImageReference
ElementNotFoundException
InteractionFailedException
TestStepAbortedException
IEngineResult
ImageReference
ElementNotFoundException
InteractionFailedException
TestStepAbortedException
Point
String
ElementNotFoundException
InteractionFailedException
TestStepAbortedException
IEngineResult
String
ElementNotFoundException
InteractionFailedException
TestStepAbortedException
Point
IEngineResult
Point
String
ElementNotFoundException
InteractionFailedException
TestStepAbortedException
IEngineResult
String
ElementNotFoundException
InteractionFailedException
TestStepAbortedException
Point
IEngineResult
Point
String
Boolean
ElementNotFoundException
InteractionFailedException
IEngineResult
String
Boolean
ElementNotFoundException
InteractionFailedException
SelectImage(Point, ImageReference)
SelectImage(IEngineResult, ImageReference)
SelectValue(Point, String)
SelectValue(IEngineResult, String)
SelectValueFromSubmenu(Point, String[])
SelectValueFromSubmenu(IEngineResult, String[])
VerifyValueInList(Point, String, Boolean)
VerifyValueInList(IEngineResult, String, Boolean)