ClassDesktopWindowPattern
Represent window pattern.
Definition
Namespace:ArtOfTest.WebAii.DesktopAutomation.Patterns
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class DesktopWindowPattern : DesktopPattern
Inheritance: objectDesktopPatternDesktopWindowPattern
Inherited Members
Constructors
DesktopWindowPattern(DesktopElement)
Create new instance of DesktopWindowPattern class.
Declaration
public DesktopWindowPattern(DesktopElement element)
Parameters
element
Underlying element.
Properties
CanMaximize
Indicates whether window can be maximized or not.
CanMinimize
Indicates whether window can be minimized or not.
IsMaximized
Indicates whether window is maximized.
IsMinimized
Indicates whether window is minimized.
IsModal
Indicates whether window is modal or not.
IsTopmost
Indicates whether window is topmost or not.
WindowInteractionState
Get window interaction state.
Declaration
public WindowInteractionState WindowInteractionState { get; }
Property Value
WindowVisualState
Get window visual state.
Declaration
public WindowVisualState WindowVisualState { get; }
Property Value
Methods
WaitForInputIdle(int)
Wait for window input to get into idle state.
Declaration
public void WaitForInputIdle(int timeout)
Parameters
timeout
Timeout in milliseconds.
WaitForWindowInteractionState(WindowInteractionState, int, int)
Wait for window interaction state to match a particular value.
Declaration
public bool WaitForWindowInteractionState(WindowInteractionState state, int delay, int timeout)
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.
WaitForWindowVisualState(WindowVisualState, int, int)
Wait for window visual state to match a particular value.
Declaration
public bool WaitForWindowVisualState(WindowVisualState state, int delay, int timeout)
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.