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
  • OpenDropdownList
  • SelectImage
  • SelectOnScreenElement
  • SelectValue
  • VerifySelectedValue
  • VerifyValueInList

Was this helpful?

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

Dropdown Methods

PreviousDropdownNextDropdown Properties

Last updated 2 years ago

Was this helpful?

OpenDropdownList

Opens the dropdownList and returns a rectangle for the list (based on rectangle with changes after expanding dropdown list)

Syntax:

public virtual void OpenDropdownList()

Exceptions:

Exception

Condition

When the dropdown could not be found on the screen.

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

SelectImage

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

The dropdown list is an <> with an given by the passed to the constructor of the dropdown.

Syntax:

public virtual void SelectImage(
	ImageReference imageReference
)

Parameters:

Parameter

Description

imageReference

Exceptions:

Exception

Condition

When the dropdown could not be found on the screen.

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

When the image cannot be found in the dropdown list.

SelectOnScreenElement

Syntax:

public virtual void SelectOnScreenElement(
        OnScreenElement element
)

Parameters:

Parameter

Description

element

Exceptions:

Exception

Condition

When the dropdown could not be found on the screen.

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

When the element cannot be found in the dropdown list.

SelectValue

Syntax:

public virtual void SelectValue(
	string value
)

Parameters:

Parameter

Description

value

Exceptions:

Exception

Condition

When the dropdown could not be found on the screen.

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

When the text value cannot be found in the dropdown list.

VerifySelectedValue

Syntax:

public virtual bool VerifySelectedValue(
	string value,
	out string actualValue
)

Parameters:

Parameter

Description

value

[actualValue]

Return Value:

Whether or not the text value could be found in the dropdown textbox.

Exceptions:

Exception

Condition

When the dropdown could not be found on the screen.

VerifyValueInList

Opens the dropdown list and verifies if the provided value is present in the dropdown list (includes scrolling). Closes the dropdown list again.

Syntax:

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

Parameters:

Parameter

Description

value

[takeScreenshot]

When true, a screenshot of the expanded dropdown is taken, showing the value to verify.

Return Value:

Whether or not the text value could be found in the dropdown textbox.

Exceptions:

Exception

Condition

When the dropdown could not be found on the screen.

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

Type: The image reference that shall be selected in the dropdown list.

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

The dropdown list is an <> with an given by the passed to the constructor of the dropdown.

Type: The element that shall be selected in the dropdown list.

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

The dropdownlist is an <> with an given by the passed to the constructor of the dropdown.

Type: The text that shall be selected in the dropdown list.

Verifies if the value that is currently set in the matches the expected value. If it doesn't, the value read from the is returned as the actualValue out parameter.

Type: The text that shall be verified in the dropdown textbox.

Type: The text that was actually read in the dropdown textbox.

The dropdown list is an <> with an given by the passed to the constructor of the dropdown.

Type: The text that shall be verified in the dropdown list.

Type:

TestStepAbortedException
TestStepAbortedException
TextBox
TextBox
ElementNotFoundException
InteractionFailedException
ImageReference
ElementNotFoundException
InteractionFailedException
TestStepAbortedException
OnScreenElement
ElementNotFoundException
InteractionFailedException
TestStepAbortedException
String
ElementNotFoundException
InteractionFailedException
TestStepAbortedException
String
String
ElementNotFoundException
String
Boolean
ElementNotFoundException
InteractionFailedException
TestStepAbortedException
ItemList
Row
IScroller
ItemList
Row
IScroller
ItemList
Row
IScroller
ItemList
Row
IScroller
AppBasics.GetScroller
AppBasics.GetScroller
AppBasics.GetScroller
AppBasics.GetScroller