Button Class

Progress Software Corporation - Testing Framework 2018.1 Automation Infrastructure
Represents a Win32 button on a window or a dialog.
Inheritance Hierarchy

SystemObject
  ArtOfTest.Common.Win32Window
    ArtOfTest.WebAii.Win32Button

Namespace:  ArtOfTest.WebAii.Win32
Assembly:  ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax

public class Button : Window

The Button type exposes the following members.

Constructors

  NameDescription
Public methodButton(HWND, Int32)
Create a new button using its parent and its button id.
Public methodButton(Window, Int32)
Create a new button using the button id
Public methodButton(HWND, String, Boolean)
Create a new button using a parent window and the button caption. Can use partial caption.
Public methodButton(Window, String, Boolean)
Create a new button using a button text and parent window.
Top
Properties

  NameDescription
Public propertyAllChildren
Gets a collection of all child windows (at any level) of this window.
(Inherited from Window.)
Public propertyCaption
Gets the window's caption.
(Inherited from Window.)
Public propertyClassName
Gets the window's class name.
(Inherited from Window.)
Public propertyEnabled
Gets whether this window is enabled or not.
(Inherited from Window.)
Public propertyExists
Gets whether the window handle represents a live native window.
(Inherited from Window.)
Public propertyHandle
Gets the handle of the window.
(Inherited from Window.)
Public propertyIsDialog
Gets whether this Window is a dialog
(Inherited from Window.)
Public propertyIsForegroundWindow
Gets whether the window is currently in use by the user.
(Inherited from Window.)
Public propertyIsMaximized
Gets whether the window is maximized.
(Inherited from Window.)
Public propertyIsMinimized
Gets whether the window is minimized.
(Inherited from Window.)
Public propertyIsVisible
Gets whether the window is visible.
(Inherited from Window.)
Public propertyLocation
Gets the top left point of the location of the window relative to the screen.
(Inherited from Window.)
Public propertyOwnerProcess
The owner process that created this window.
(Inherited from Window.)
Public propertyParentWindow
Get parent window of this window. Returns null if there is no parent window.
(Inherited from Window.)
Public propertyRectangle
Gets the rectangle of the window.
(Inherited from Window.)
Public propertySize
Gets the size of the window.
(Inherited from Window.)
Top
Methods

  NameDescription
Public methodAttachWrappedWindow
Attach to the wrapper window handle. This call is needed to allow for events to fire on this window.
(Inherited from Window.)
Public methodCenter
Get the center point of this window
(Inherited from Window.)
Public methodClick
Click this button
Public methodClose
Close the window.
(Inherited from Window.)
Public methodContainsControl
Returns true/false whether the Win32 control id is a child of this window
(Inherited from Window.)
Public methodContainsText
Returns true/false whether the text is present within this window.
(Inherited from Window.)
Public methodDetachWrappedWindow
Detach from the window handle.
(Inherited from Window.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetBitmap
Returns a bitmap
(Inherited from Window.)
Public methodGetBitmap(RectangleF)
Returns a bitmap of a specified target area within this window.
(Inherited from Window.)
Public methodGetBitmap(Size)
Capture the entire window bitmap and returns it.
(Inherited from Window.)
Public methodGetHashCode
The hash code is the window's hwnd.
(Inherited from Window.)
Public methodGetText
Get the text contained in this window and all its children windows.
(Inherited from Window.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetWindowText
Get current text of the window.
(Inherited from Window.)
Public methodHide
Hide the window.
(Inherited from Window.)
Public methodMakeAbsolute
Return the absolute coordinate of the relative rectangle.
(Inherited from Window.)
Public methodMakeRelative
Make the absolute rects passed in relative to this window.
(Inherited from Window.)
Public methodMaximize
Maximize the window
(Inherited from Window.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMinimize
Minimize the window.
(Inherited from Window.)
Public methodMove
Move this window to a new location
(Inherited from Window.)
Protected methodOnClick
For internal use only.
(Inherited from Window.)
Protected methodOnDoubleClick
For internal use only.
(Inherited from Window.)
Protected methodOnKeyDown
For internal use only.
(Inherited from Window.)
Protected methodOnKeyPressed
For internal use only.
(Inherited from Window.)
Protected methodOnKeyUp
For internal use only.
(Inherited from Window.)
Protected methodOnMouseClick(MouseEventArgs)
For internal use only.
(Inherited from Window.)
Protected methodOnMouseClick(MouseButtons, Int32, Int32, Int32)
For internal use only.
(Inherited from Window.)
Protected methodOnMouseDoubleClick
For internal use only.
(Inherited from Window.)
Protected methodOnMouseDown(MouseEventArgs)
For internal use only.
(Inherited from Window.)
Protected methodOnMouseDown(MouseButtons, Int32, Int32)
For internal use only.
(Inherited from Window.)
Protected methodOnMouseMove
For internal use only.
(Inherited from Window.)
Protected methodOnMouseUp(MouseEventArgs)
For internal use only.
(Inherited from Window.)
Protected methodOnMouseUp(MouseButtons, Int32, Int32)
For internal use only.
(Inherited from Window.)
Protected methodOnPreMouseClick
For internal use only.
(Inherited from Window.)
Protected methodOnPreMouseDown
For internal use only.
(Inherited from Window.)
Protected methodOnPreMouseUp
For internal use only.
(Inherited from Window.)
Protected methodOnWindowMoved
For internal use only.
(Inherited from Window.)
Public methodStatic memberPostClickMessage
Public methodRefreshChildren
Refresh the list of child windows (Window.Children) of this window
(Inherited from Window.)
Public methodRestore
Restore the window to its default size/location
(Inherited from Window.)
Public methodSetActive
Set this window to active.
(Inherited from Window.)
Public methodSetFocus
Restores and Brings the window to the front, assuming it is a visible application window.
(Inherited from Window.)
Public methodSetPosition (Inherited from Window.)
Public methodShow
Show this window and make it visible
(Inherited from Window.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Update the window. Invalidates all areas and forces a redraw.
(Inherited from Window.)
Public methodWaitForVisibility(Boolean, Int32)
Waits for a certain visibility state for a window
(Inherited from Window.)
Public methodWaitForVisibility(Boolean, Int32, Boolean)
Waits for a certain visibility state for a window
(Inherited from Window.)
Top
Events

  NameDescription
Public eventClick
For internal use only.
(Inherited from Window.)
Public eventDoubleClick
For internal use only.
(Inherited from Window.)
Public eventKeyDown
For internal use only.
(Inherited from Window.)
Public eventKeyPressed
For internal use only.
(Inherited from Window.)
Public eventKeyUp
For internal use only.
(Inherited from Window.)
Public eventMouseClick
For internal use only.
(Inherited from Window.)
Public eventMouseDoubleClick
For internal use only.
(Inherited from Window.)
Public eventMouseDown
For internal use only.
(Inherited from Window.)
Public eventMouseMove
For internal use only.
(Inherited from Window.)
Public eventMouseUp
For internal use only.
(Inherited from Window.)
Public eventPreMouseClick
For internal use only.
(Inherited from Window.)
Public eventPreMouseDown
For internal use only.
(Inherited from Window.)
Public eventPreMouseUp
For internal use only.
(Inherited from Window.)
Public eventWindowMoved
For internal use only.
(Inherited from Window.)
Top
See Also

Reference