ClassDesktopDeviantWindow
Represents application window that does not implement window and transform patterns.
Definition
Namespace:ArtOfTest.WebAii.DesktopAutomation.Controls
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class DesktopDeviantWindow : DesktopWindow
Inheritance: objectDesktopControlDesktopWindowDesktopDeviantWindow
Inherited Members
Constructors
DesktopDeviantWindow()
Declaration
public DesktopDeviantWindow()
Properties
CanMaximize
Indicates whether window can be maximized or not.
Declaration
public override bool CanMaximize { get; }
Property Value
Overrides
CanMinimize
Indicates whether window can be minimized or not.
Declaration
public override bool CanMinimize { get; }
Property Value
Overrides
CanMove
Indicates whether window can be moved or not.
CanResize
Indicates whether window can be resized or not.
IsMaximized
Indicates whether window is maximized.
Declaration
public override bool IsMaximized { get; }
Property Value
Overrides
IsMinimized
Indicates whether window is minimized.
Declaration
public override bool IsMinimized { get; }
Property Value
Overrides
IsModal
Indicates whether window is modal or not.
Methods
InitControl(DesktopElement)
Initialize desktop control.
Declaration
protected override void InitControl(DesktopElement element)
Parameters
element
Underlying element.
Overrides
Move(double, double)
Move window to specific coordinates.
Resize(double, double)
Resize window to new width and height.
WaitForInputIdle(int)
Wait for window input to get into idle state.
Declaration
public override void WaitForInputIdle(int timeout)
Parameters
timeout
Timeout in milliseconds.
Overrides
WaitForWindowInteractionState(WindowInteractionState, int, int)
Wait for window interaction state to match a particular value.
Declaration
public override bool WaitForWindowInteractionState(WindowInteractionState state, int delay = 100, int timeout = 300)
Parameters
state
Window interaction state value to wait for.
delay
Delay between checks in milliseconds.
timeout
Max time to wait in milliseconds.
Returns
True if window interaction state matches expected value into timeout interval, otherwise false.
Overrides
WaitForWindowVisualState(WindowVisualState, int, int)
Wait for window visual state to match a particular value.
Declaration
public override bool WaitForWindowVisualState(WindowVisualState state, int delay = 100, int timeout = 300)
Parameters
state
Window visual state value to wait for.
delay
Delay between checks in milliseconds.
timeout
Max time to wait in milliseconds.
Returns
True if window visual state matches expected value into timeout interval, otherwise false.
Overrides