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
  • SelectFromColorAtPoint
  • Overload List
  • SelectFromColorAtPoint(ITester, ImageReference, Double, TimeSpan, ImageDetectionParameters, IImageFilter[ ])
  • SelectFromColorAtPoint(ITester, IEngineResult, Double, IImageFilter[ ])
  • SelectFromColorAtPoint(ITester, Point, Double, IImageFilter[ ])
  • SelectFromTopLeftAndBottomRightImages

Was this helpful?

  1. Models
  2. Base Model
  3. Extensions

TesterSelectExtensions Methods

SelectFromColorAtPoint

Overload List

Name

Description

SelectFromColorAtPoint(ITester, ImageReference, Double, TimeSpan, ImageDetectionParameters, IImageFilter[ ])

Returns a Select filter that contains the connected region of the same color (floodfill) on the filtered current screen starting from the Hotspot (or middle) of the imagesearch with the provided imageReference. Throws a TestStepAbortedException, if the image cannot be found on screen.

Syntax:

public static Select SelectFromColorAtPoint(
	this ITester t,
	ImageReference imageReference,
	double tolerance = 0.004,
	TimeSpan searchTime = default,
	ImageDetectionParameters parameters = null,
	params IImageFilter[] filters
)

Parameters:

Parameter

Description

t

imageReference

[tolerance]

[searchTime]

[parameters]

Type: ImageDetectionParameters

The image parameters for the imagesearches.

[filters]

Return Value:

A Select filter.

SelectFromColorAtPoint(ITester, IEngineResult, Double, IImageFilter[ ])

Returns a Select filter that contains the connected region of the same color (floodfill) on the filtered current screen starting from the hotspot or Location of the provided position.

Syntax:

public static Select SelectFromColorAtPoint(
	this ITester t,
	IEngineResult position,
	double tolerance = 0.004,
	params IImageFilter[] filters
)

Parameters:

Parameter

Description

t

position

[tolerance]

[filters]

Return Value:

A Select filter.

SelectFromColorAtPoint(ITester, Point, Double, IImageFilter[ ])

Returns a Select filter that contains the connected region of the same color (floodfill) on the filtered current screen starting from the provided point.

Syntax:

public static Select SelectFromColorAtPoint(
	this ITester t,
	Point origin,
	double tolerance = 0.004,
	params IImageFilter[] filters
)

Parameters:

Parameter

Description

t

origin

[tolerance]

[filters]

Return Value:

A Select filter.

SelectFromTopLeftAndBottomRightImages

Returns a Select filter formed by Hotspots (or middle if no hotspot set) of topLeftImage and bottomRightImage. Throws TestStepAbortedException if Images not found.

Syntax:

public static Select SelectFromTopLeftAndBottomRightImages(
	this ITester t,
	ImageReference topLeftImage,
	ImageReference bottomRightImage,
	TimeSpan searchTime = default,
	ImageDetectionParameters parameters = null,
	params IImageFilter[] filters
)

Parameters:

Parameter

Description

t

topLeftImage

bottomRightImage

The image which hotspot or middle marks the bottom right corner of the select

[searchTime]

How long the search for the image should last at most.

[parameters]

Type: ImageDetectionParameters The tolerance for the floodfill, max allowed differences in each RGB color channels. Default tolerance 0.004 = roughly 1 px. (255 / tolerance = 1)

[filters]

Return Value:

A Select filter.

PreviousTesterOnScreenElementExtensionsNextHelper Classes

Last updated 4 years ago

Was this helpful?

Returns a filter that contains the connected region of the same color (floodfill) on the filtered current screen starting from the (or middle) of the imagesearch with the provided imageReference. Throws a , if the image cannot be found on screen.

Returns a filter that contains the connected region of the same color (floodfill) on the filtered current screen starting from the hotspot or of the provided position.

Returns a filter that contains the connected region of the same color (floodfill) on the filtered current screen starting from the provided point.

Type: The ITester interface on which the extension is called.

Type: Image reference for the imageSearch.

Type: The tolerance for the floodfill, max allowed differences in each RGB color channels. Default tolerance 0.004 = roughly 1 px. (255 / tolerance = 1)

Type: The timeSpan indicating for how long shall be searched.

Type: [ ] The filters for the imagesearch AND the floodfill algorithm. If different filters are required to find the orign point and for the floodFill, do a normal FindImage first and use SelectFromColorAtPoint signature with Point.

Type: The ITester interface on which the extension is called.

Type: The origin for the floodfill. This is often the property of a that was found before (e.g. in method).

Type: The tolerance for the floodfill, max allowed differences in each RGB color channels. Default tolerance 0.004 = roughly 1 px. (255 / tolerance = 1)

Type: [ ] The filters that shall be used for the floodfill algorithm.

Type: The ITester interface on which the extension is called.

Type: The origin for the floodfill.

Type: The tolerance for the floodfill, max allowed differences in each RGB color channels. Default tolerance 0.004 = roughly 1 px. (255 / tolerance = 1)

Type: [ ] The filters that shall be used for the floodfill algorithm.

Type: The ITester interface on which the extension is called.

Type: The image which hotspot or middle marks the top left corner of the select.

Type:

Type:

Type: [ ] Typically a Select filter indicating the area of interest for the image searches.

SelectFromColorAtPoint(ITester, ImageReference, Double, TimeSpan, ImageDetectionParameters, IImageFilter[ ])
Select
Hotspot
TestStepAbortedException
SelectFromColorAtPoint(ITester, IEngineResult, Double, IImageFilter[ ])
Select
Location
SelectFromColorAtPoint(ITester, Point, Double, IImageFilter[ ])
Select
ITester
ImageReference
Double
TimeSpan
IImageFilter
ITester
IEngineResult
Position
BaseScreen
Initialize
Double
IImageFilter
ITester
Point
Double
IImageFilter
ITester
ImageReference
ImageReference
TimeSpan
IImageFilter