🖋️
QualityMate
  • QualityMate
  • Getting Started
    • Introduction
    • Why QualityMate
    • Architecture
    • Supported Web Browsers
    • Glossary
  • Components
    • UI Player
      • Basic Concepts
      • UiPlayer
      • MSTest Integration
      • Samples
        • QualityMate Sample Desktop
        • QualityMate Sample Web
        • QualityMate MSTest Integration Sample Desktop
        • QualityMate MSTest Integration Sample Web
        • QualityMate Integration with Test Frameworks
        • Web Authentication Sample
      • QualityMate Project Template
    • UI Recorder
      • Basic Concepts
      • Setting Up the Recorder
      • Validating an Element
      • Generating QualityMate Solution
  • Tools
    • File Comparators
    • Image Processor
    • Project Merger
    • Test Case Generator
      • Filters
      • Rename Recorded Controls
  • Basic Concepts
    • Page Object
      • Work Guide
    • Controls
      • Control Types
        • Generic Types
        • Desktop types
        • Web Types
        • WebMap types
          • Kendo PowerBuilder
          • Kendo WinForms
          • Kendo Silverlight
      • Interactions
        • SendKeys
        • Validate
    • Selectors
      • Selectors in Code
      • Default Selector
      • Shared Selector
      • Selectors Category
        • CSS Selector
        • XPath Selector
        • Image Selector
        • Frame Selector
      • Identifying Selector
        • Identify for Windows Desktop
        • Identify for Web
  • How to Guides
    • Setting Up the Configuration
      • Parameters
      • Context
      • Loading External Data
    • Awaiting for the Application
      • Busy Loaders
      • Retries
    • Defining Controls
      • Extending Controls
      • Control Slice
      • Control Collection
    • Logging on Tests
      • QualityMate Reports
      • Logging
  • Help
    • Best Practices
      • Environment
      • Tests
      • Page Objects
      • Validations
      • Interactions
      • Image Comparisons
    • Known Issues
    • Continuous Integration
      • Agents Session
    • Upgrading QualityMate
      • From version 7 to version 8
      • Previous Versions
      • How to switch from TestFeature to UiTest
    • VS Test
      • Command Line
      • Generate Reports
  • API
    • Control Interfaces
      • IButton
      • ICheckBox
      • IComboBox
      • IControl
      • IControlSlice
      • IDateTimePicker
      • IElement
      • IGrid
      • IGroupBox
      • ILabel
      • IListBox
      • IMenu
      • INumericUpDown
      • IPageObject
      • IProgressBar
      • IRadioButton
      • IRadioButtonGroup
      • ISplitButton
      • IStatusStrip
      • ITab
      • ITextBox
      • IToggleButton
      • IToolBar
      • ITreeView
    • Behavior
      • ICheckableControl
      • IList
      • ITextControl
    • Enums
      • ClickType
      • KeyModifiers
      • MouseButton
  • Changelog
    • Changelog
      • Version 8
      • Version 7
      • Version 6
      • Version 5
      • Version 4
      • Version 3
Powered by GitBook
On this page

Was this helpful?

Last updated 2 years ago

Was this helpful?

IControl Interface

Defines the basic interactions for controls that implement the Control interface.

Derived ↳ ↳ ↳ ↳ ↳ ↳ ↳ ↳ ↳ ↳ ↳ ↳ ↳ ↳ ↳ ↳ ↳ ↳ ↳ ↳ ↳ ↳ ↳ ↳ ↳

Implements

Properties

IControl.Enabled Property

Gets a value indicating whether this instance is enabled.

Property Value

IControl.Exists Property

Gets a value indicating whether this instance exists.

Property Value

IControl.Rectangle Property

Gets the x and y coordinates, and width and height size of this control.

Property Value

IControl.Selected Property

Gets a value indicating whether this instance is selected in a list.

Property Value

IControl.Text Property

Gets the text value of this control.

Property Value

IControl.Visible Property

Gets a value indicating whether this instance is visible.

Property Value

Methods

IControl.Click() Method

Clicks this instance.

IControl.Click(KeyModifiers) Method

Clicks this control.

Parameters

The key modifiers to be used when the control is clicked.

IControl.Click(MouseButton) Method

Clicks this control.

Parameters

The mouse button used to perform the click.

IControl.Click(MouseButton, ClickType) Method

Clicks this control.

Parameters

The mouse button used to perform the click.

The type of click to be performed.

IControl.Click(MouseButton, ClickType, KeyModifiers) Method

Clicks this control.

Parameters

The mouse button used to perform the click.

The type of click to be performed.

The key modifiers to be used when the control is clicked.

IControl.Click(MouseButton, ClickType, Point) Method

Clicks this control.

Parameters

The mouse button used to perform the click.

The type of click to be performed.

The location within the control to be clicked.

IControl.Click(MouseButton, ClickType, Point, KeyModifiers) Method

Clicks this control.

Parameters

The mouse button used to perform the click.

The type of click to be performed.

The location within the control to be clicked.

The key modifiers to be used when the control is clicked.

IControl.Click(Point) Method

Clicks this control.

Parameters

The location within the control to be clicked.

IControl.Drag(int, int, int, int) Method

Move the mouse cursor from a specific coordinate to a another.

Parameters

Starting position at x-axis relative to the control.

Starting position at y-axis relative to the control.

Remarks

IControl.DragAndDrop(IControl) Method

Drags this instance to the target control's position.

Parameters

The target control.

IControl.DrawHighlight() Method

Draws a red highlight around this control.

IControl.GetAttribute(string) Method

Gets a specific attribute.

Parameters

Returns

IControl.GetScreenshot() Method

Gets a screenshot of this control.

Returns

IControl.MouseHover() Method

Positions the cursor over this instance.

IControl.ScrollDown(int) Method

Moves the vertical scrollbar down by that number of pixels.

Parameters

Number of pixels to move.

IControl.ScrollLeft(int) Method

Moves the horizontal scrollbar to the left by that number of pixels.

Parameters

Number of pixels to move.

IControl.ScrollRight(int) Method

Moves the horizontal scrollbar to the right by that number of pixels.

Parameters

Number of pixels to move.

IControl.ScrollUp(int) Method

Moves the vertical scrollbar up by that number of pixels.

Parameters

Number of pixels to move.

IControl.SendKeys(string) Method

Sends a key event to this instance.

Parameters

keyModifiers

mouseButton

mouseButton

clickType

mouseButton

clickType

keyModifiers

mouseButton

clickType

location

mouseButton

clickType

location

keyModifiers

location

x

y

distanceX

Distance at x-axis relative to the coordinate.

distanceY

Distance at y-axis relative to the coordinate.

Remember that and could be negative to move left and up.

target

attribute

The attribute to get..

A string which contains the attribute's value. If it's not found, null is returned instead.

The screenshot of this control.

numberOfPixels

numberOfPixels

numberOfPixels

numberOfPixels

keys

The key.

bool Exists { get; }
System.Drawing.Rectangle Rectangle { get; }
bool Selected { get; }
string Text { get; }
bool Visible { get; }
void Click();
void Click(Mobilize.QualityMate.ControlInterfaces.Enums.KeyModifiers keyModifiers);
void Click(Mobilize.QualityMate.ControlInterfaces.Enums.MouseButton mouseButton);
void Click(Mobilize.QualityMate.ControlInterfaces.Enums.MouseButton mouseButton, Mobilize.QualityMate.ControlInterfaces.Enums.ClickType clickType);
void Click(Mobilize.QualityMate.ControlInterfaces.Enums.MouseButton mouseButton, Mobilize.QualityMate.ControlInterfaces.Enums.ClickType clickType, Mobilize.QualityMate.ControlInterfaces.Enums.KeyModifiers keyModifiers);
void Click(Mobilize.QualityMate.ControlInterfaces.Enums.MouseButton mouseButton, Mobilize.QualityMate.ControlInterfaces.Enums.ClickType clickType, System.Drawing.Point location);
void Click(Mobilize.QualityMate.ControlInterfaces.Enums.MouseButton mouseButton, Mobilize.QualityMate.ControlInterfaces.Enums.ClickType clickType, System.Drawing.Point location, Mobilize.QualityMate.ControlInterfaces.Enums.KeyModifiers keyModifiers);
void Click(System.Drawing.Point location);
void Drag(int x, int y, int distanceX, int distanceY);
void DragAndDrop(Mobilize.QualityMate.ControlInterfaces.IControl target);
void DrawHighlight();
string GetAttribute(string attribute);
System.Drawing.Bitmap GetScreenshot();
void MouseHover();
void ScrollDown(int numberOfPixels);
void ScrollLeft(int numberOfPixels);
void ScrollRight(int numberOfPixels);
void ScrollUp(int numberOfPixels);
void SendKeys(string keys);
  1. API
  2. Control Interfaces

IControl

PreviousIComboBoxNextIControlSlice
  • IControl Interface
  • IControl.Enabled Property
  • IControl.Exists Property
  • IControl.Rectangle Property
  • IControl.Selected Property
  • IControl.Text Property
  • IControl.Visible Property
  • IControl.Click() Method
  • IControl.Click(KeyModifiers) Method
  • IControl.Click(MouseButton) Method
  • IControl.Click(MouseButton, ClickType) Method
  • IControl.Click(MouseButton, ClickType, KeyModifiers) Method
  • IControl.Click(MouseButton, ClickType, Point) Method
  • IControl.Click(MouseButton, ClickType, Point, KeyModifiers) Method
  • IControl.Click(Point) Method
  • IControl.Drag(int, int, int, int) Method
  • IControl.DragAndDrop(IControl) Method
  • IControl.DrawHighlight() Method
  • IControl.GetAttribute(string) Method
  • IControl.GetScreenshot() Method
  • IControl.MouseHover() Method
  • IControl.ScrollDown(int) Method
  • IControl.ScrollLeft(int) Method
  • IControl.ScrollRight(int) Method
  • IControl.ScrollUp(int) Method
  • IControl.SendKeys(string) Method
public interface IControl :
Mobilize.QualityMate.ControlInterfaces.Behavior.IValidatable
bool Enabled { get; }
Mobilize.QualityMate.ControlInterfaces
Mobilize.QualityMate.ControlInterfaces
ICheckableControl
ITextControl
IButton
ICheckBox
IComboBox
IControlSlice
IDateTimePicker
IElement
IGrid
IGroupBox
ILabel
IListBox
IMenu
INumericUpDown
IProgressBar
IRadioButton
IRadioButtonGroup
ISplitButton
IStatusStrip
ITab
ITextBox
ITitleBar
IToggleButton
IToolBar
ITreeView
IValidatable
System.Boolean
System.Boolean
System.Drawing.Rectangle
System.Boolean
System.String
System.Boolean
KeyModifiers
MouseButton
MouseButton
ClickType
MouseButton
ClickType
KeyModifiers
MouseButton
ClickType
System.Drawing.Point
MouseButton
ClickType
System.Drawing.Point
KeyModifiers
System.Drawing.Point
System.Int32
System.Int32
System.Int32
System.Int32
IControl
System.String
System.String
System.String
System.Drawing.Bitmap
System.Int32
System.Int32
System.Int32
System.Int32
System.String
System.String
x
y
distanceX
distanceY