Table of Contents

Interface IWindow

A .NET WPF window object.

Inherited Members
IUiObjectBase.GetObjectProperty<TValue>(string)
IUiObjectBase.MakeVisible()
IUiObjectBase.ShowContextMenu()
IUiObjectBase.CanFocus
IUiObjectBase.ObjectName
IUiObjectBase.FullNamePath
IUiObjectBase.FullType
IUiObjectBase.AttachedText
IUiObjectBase.Text
IUiObjectBase.MouseMove(Location)
IUiObjectBase.IsFocused
IUiObjectBase.NativeClass
IUiObjectBase.WindowTitleRegExp
IUiObjectBase.Handle
IClickable.Click(MouseButton)
IClickable.Click(ClickArgs)
IDoubleClickable.DoubleClick(MouseButton)
IDoubleClickable.DoubleClick(ClickArgs)
ILocationInfoProvider.Location
ILocationInfoProvider.AbsoluteLocation
ILocationInfoProvider.Size
ISupportSendKeys.SendKeys(string, KeyModifier)
ISupportSendKeys.SendKeys(string)
ISupportDragAndDrop.DragAndDropOn(ISupportDragAndDrop)
ISupportDragAndDrop.DragAndDropOn(ISupportDragAndDrop, DragAndDropArgs)
IEnabledProvider.IsEnabled
IVisibleProvider.IsVisible
ISupportsNativeObject.NativeObject
ITestObject.GetDescription()
ITestObject.SetDescription(IDescription)
ITestObject.FindChildren<TChild>(IDescription)
ITestObject.Exists()
ITestObject.Exists(uint)
ITestObject.GetSnapshot()
ITestObject.Highlight()
ITestObject.HighlightMatches<TChild>(IDescription)
ITestObject.GetTextLocations(string)
ITestObject.GetTextLocations(string, Rectangle)
ITestObject.GetVisibleText()
ITestObject.GetVisibleText(Rectangle)
ITestObject.VerifyImageExists(Image, byte)
ITestObject.VerifyImageMatch(Image, byte, byte)
ITestObject.VerifyImageMatch(Image, ImageMaskArea, byte, byte)
ITestObject.CallFTMethod(string, params object[])
ITestObject.CallFTMethod<TResult>(string, params object[])
ITestObject.Parent
ITestObject.DisplayName
ITestObjectDescriber.Describe<TChild>(IDescription)
Namespace: HP.LFT.SDK.WPF
Assembly: HP.LFT.SDK.dll
Syntax
public interface IWindow : IUiObjectBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ISupportsNativeObject, ITopLevelObject, ITestObject, ITestObjectDescriber

Properties

IsModal

Indicates whether this window is modal.

Declaration
bool IsModal { get; }
Property Value
Type Description
bool

ParentText

The text associated with the parent object of this object.

Declaration
string ParentText { get; }
Property Value
Type Description
string

WindowState

The current window state: maximized, minimized, or normal.

Declaration
WindowState WindowState { get; }
Property Value
Type Description
WindowState

Methods

Activate()

Activates this window.

Declaration
void Activate()

Activate(MouseButton)

Activates this window using the specified mouse button.

Declaration
void Activate(MouseButton button)
Parameters
Type Name Description
MouseButton button

The mouse button used to click the window.

Close()

Closes this window.

Declaration
void Close()

Maximize()

Maximizes this window.

Declaration
void Maximize()

Minimize()

Minimizes this window to an icon.

Declaration
void Minimize()

Move(Point)

Moves this window to the specified absolute location on the screen.

Declaration
void Move(Point point)
Parameters
Type Name Description
Point point

Absolute pixel location on the screen.

Move(int, int)

Moves this window to the specified absolute location on the screen.

Declaration
void Move(int x, int y)
Parameters
Type Name Description
int x

In pixels.

int y

In pixels.

Resize(Size)

Resizes this window to the specified dimensions.

Declaration
void Resize(Size size)
Parameters
Type Name Description
Size size

The size in pixels.

Resize(int, int)

Resizes this window to the specified dimensions.

Declaration
void Resize(int width, int height)
Parameters
Type Name Description
int width

In pixels.

int height

In pixels.

Restore()

Restores this window to its previous size.

Declaration
void Restore()

Extension Methods

TestObjectExtensions.WaitUntilEnabled<T>(T)
TestObjectExtensions.WaitUntilEnabled<T>(T, int)
TestObjectExtensions.WaitUntilExists<T>(T)
TestObjectExtensions.WaitUntilExists<T>(T, int)
TestObjectExtensions.WaitUntilVisible<T>(T)
TestObjectExtensions.WaitUntilVisible<T>(T, int)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>, int)