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
  • ClickRelativeToCurrentPosition
  • DoubleClick
  • DragAndDrop
  • LongClick
  • TripleClick

Was this helpful?

  1. Models
  2. Base Model
  3. Extensions

TesterMouseExtensions Methods

ClickRelativeToCurrentPosition

Clicks at the specified x, y offset from the current position. Used e.g. to click out of text box.

Syntax:

public static void ClickRelativeToCurrentPosition(
	this IMouse mouse,
	ITester t,
	int x,
	int y,
	MouseButton button = MouseButton.Left
)

Parameters:

Parameter

Description

mouse

t

x

y

[button]

The mouse button that shall be used for the click.

DoubleClick

Performs a double click at the specified target location. Wait time between the individual clicks is controlled by the optional parameter doubleClickDelay.

Syntax:

public static void DoubleClick(
	this IMouse mouse,
	ITester t,
	Point target,
	int doubleClickDelay = 20,
	MouseButton mouseButton = MouseButton.Left
)

Parameters:

Parameter

Description

mouse

t

target

Position where to click with the mouse.

[doubleClickDelay]

[button]

The mouse button that shall be used for the clicks.

DragAndDrop

Performs a drag-and-drop movement from the origin point to the target point. Mouse is moved to the origin first, then the mouse button is pressed and the mouse is moved to the target point. After the move it waits until the screen is stable again in the area specified by filters (movement animation is finished) and the mouse button is released. The caller is responsible to wait for any animation to complete which happens after the mouse button is released.

Syntax:

public static void DragAndDrop(
	this IMouse mouse,
	ITester t,
	Point origin,
	Point target,
	MouseButton mouseButton = MouseButton.Left,
	ImgDiffTolerance imgDiffTolerance = ImgDiffTolerance.Low,
	params IImageFilter[] filters
)

Parameters:

Parameter

Description

mouse

t

origin

Position where to press the mouse button and start the drag and drop.

target

Position where to move the mouse and release the mouse button.

[button]

The mouse button that shall be used for the drag and drop.

[imgDiffTolerance]

[filters]

LongClick

Performs a long click which lasts for delayInMs, instead of the usual t.Properties.MouseClickDelay.

Syntax:

public static void LongClick(
	this IMouse mouse,
	ITester t,
	Point target,
	int delayInMs,
	MouseButton mouseButton = MouseButton.Left
)

Parameters:

Parameter

Description

mouse

t

target

Position where to click with the mouse.

delayInMs

[button]

The mouse button that shall be used for the click.

TripleClick

Performs a triple click at the specified target location. Wait time between the individual clicks is controlled by the optional parameter doubleClickDelay.

Syntax:

public static void TripleClick(
	this IMouse mouse,
	ITester t,
	Point target,
	int doubleClickDelay = 20,
	MouseButton mouseButton = MouseButton.Left
)

Parameters:

Parameter

Description

mouse

t

target

Position where to click with the mouse.

[doubleClickDelay]

[button]

The mouse button that shall be used for the clicks.

PreviousTesterHelperExtensions MethodsNextTesterOnScreenElementExtensions

Last updated 5 years ago

Was this helpful?

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

Type: The ITester interface.

Type: The offset in x-Direction (left-right).

Type: The offset in y-Direction (up-down).

Type:

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

Type: The ITester interface.

Type:

Type: The time to wait between the clicks.

Type:

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

Type: The ITester interface.

Type:

Type:

Type:

Type: The tolerance that is used to wait for stable screen after completing the move before the mouse button is released.

Type: [ ] Typically a Select filter indicating the area that is checked when waiting for the stable screen.

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

Type: The ITester interface.

Type:

Type: How long the click shall last in milliseconds.

Type:

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

Type: The ITester interface.

Type:

Type: The time to wait between the clicks.

Type:

IMouse
ITester
Int32
Int32
IMouse
ITester
Point
Int32
IMouse
ITester
Point
Point
IImageFilter
IMouse
ITester
Point
Int32
IMouse
ITester
Point
Int32
ImgDiffTolerance
MouseButton
MouseButton
MouseButton
MouseButton
MouseButton