C# Class WATKit.FluentAutomationWaitExtensions

Provides extension methods for wait operations within the fluent automation api
These methods provide support for waiting on an automation control to become available and/or visible when it represents a proxy or for a real control to become unavailable, hidden, enabled or disabled
Exibir arquivo Open project: MikeHanson/WATKit

Public Methods

Method Description
Indefinitely ( this waitSettings ) : AutomationControl

Executes and indefinite wait operation.

TimeoutAfter ( this waitSettings, System.TimeSpan timeout, bool throwExceptionOnTimeout = false ) : AutomationControl

Executes a wait operation that will timeout if not successful

UntilDisabled ( this waitSettings ) : WaitSettings

Sets the operation to wait for the control to become disabled.

UntilEnabled ( this waitSettings ) : WaitSettings

Sets the operation to wait for the control to be enabled.

UntilExists ( this waitSettings ) : WaitSettings

Sets the operation to wait for the existence of the control.

UntilHidden ( this waitSettings ) : WaitSettings

Sets the operation to wait for the control to become hidden.

UntilNotExists ( this waitSettings ) : WaitSettings

Sets the operation to wait for the control to no longer exist.

UntilVisible ( this waitSettings ) : WaitSettings

Sets the operation to wait for the control to be visible.

Wait ( this owner ) : WaitSettings

Sets up a new wait operation

Private Methods

Method Description
ExecuteExistsWait ( WaitSettings waitSettings, bool throwExceptionOnTimeout ) : AutomationControl

Executes a wait on the existence of the target automation control.

ExecuteIsEnabledWait ( WaitSettings waitSettings, bool throwExceptionOnTimeout = false ) : AutomationControl

Executes a wait on the IsEnabled state of the target automation control.

ExecuteIsVisibleWait ( WaitSettings waitSettings, bool throwExceptionOnTimeout ) : AutomationControl

Executes a wait on the IsVisible state of the target automation control.

ExecuteWait ( WaitSettings waitSettings, System.TimeSpan timeout, bool throwExceptionOnTimeout = false ) : AutomationControl

Executes a wait operation

ExecuteWinFormsVisibilityWait ( WaitSettings waitSettings, bool throwExceptionOnTimeout, bool stateToWaitFor ) : AutomationControl

Executes a wait on the IsVisible state of a WinForms automation control.

ExecuteWpfVisiblityWait ( WaitSettings waitSettings, bool throwExceptionOnTimeout, bool stateToWaitFor ) : AutomationControl

Executes a wait on the IsVisible state of a WPF automation control.

Method Details

Indefinitely() public static method

Executes and indefinite wait operation.
public static Indefinitely ( this waitSettings ) : AutomationControl
waitSettings this The wait settings.
return WATKit.Controls.AutomationControl

TimeoutAfter() public static method

Executes a wait operation that will timeout if not successful
Thrown if the timeout period is reached before the expected state is true
public static TimeoutAfter ( this waitSettings, System.TimeSpan timeout, bool throwExceptionOnTimeout = false ) : AutomationControl
waitSettings this The wait settings.
timeout System.TimeSpan The timeout.
throwExceptionOnTimeout bool if set to true a TimeoutException will be thrown on timeout without success.
return WATKit.Controls.AutomationControl

UntilDisabled() public static method

Sets the operation to wait for the control to become disabled.
public static UntilDisabled ( this waitSettings ) : WaitSettings
waitSettings this The wait settings.
return WaitSettings

UntilEnabled() public static method

Sets the operation to wait for the control to be enabled.
public static UntilEnabled ( this waitSettings ) : WaitSettings
waitSettings this The wait settings.
return WaitSettings

UntilExists() public static method

Sets the operation to wait for the existence of the control.
public static UntilExists ( this waitSettings ) : WaitSettings
waitSettings this The wait settings.
return WaitSettings

UntilHidden() public static method

Sets the operation to wait for the control to become hidden.
public static UntilHidden ( this waitSettings ) : WaitSettings
waitSettings this The wait settings.
return WaitSettings

UntilNotExists() public static method

Sets the operation to wait for the control to no longer exist.
public static UntilNotExists ( this waitSettings ) : WaitSettings
waitSettings this The wait settings.
return WaitSettings

UntilVisible() public static method

Sets the operation to wait for the control to be visible.
public static UntilVisible ( this waitSettings ) : WaitSettings
waitSettings this The wait settings.
return WaitSettings

Wait() public static method

Sets up a new wait operation
public static Wait ( this owner ) : WaitSettings
owner this The automation control owning the wait settings
return WaitSettings