UITestControlNotAvailableException Class

Definition

The exception that is thrown when the UI test framework attempts to access a UI element that is no longer available or cannot be accessed.

public ref class UITestControlNotAvailableException : Microsoft::VisualStudio::TestTools::UITest::Extension::UITestException
[System.Serializable]
public class UITestControlNotAvailableException : Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException
[<System.Serializable>]
type UITestControlNotAvailableException = class
    inherit UITestException
Public Class UITestControlNotAvailableException
Inherits UITestException
Inheritance
UITestControlNotAvailableException
Attributes

Constructors

UITestControlNotAvailableException()

Initializes a new instance of the UITestControlNotAvailableException class.

UITestControlNotAvailableException(Exception)

Initializes a new instance of the UITestControlNotAvailableException class by using the provided inner exception.

UITestControlNotAvailableException(Exception, String, Object)

Initializes a new instance of the UITestControlNotAvailableException class by using the provided inner exception, UI test control, and exception source.

UITestControlNotAvailableException(IUITechnologyElement, Exception)

Initializes a new instance of the UITestControlNotAvailableException class by using the provided UI element.

UITestControlNotAvailableException(SerializationInfo, StreamingContext)

Initializes a new instance of the UITestControlNotAvailableException class for deserialization.

UITestControlNotAvailableException(String)

Initializes a new instance of the UITestControlNotAvailableException class by using the provided message.

UITestControlNotAvailableException(String, Exception)

Initializes a new instance of the UITestControlNotAvailableException class by using the provided message and inner exception.

UITestControlNotAvailableException(String, Exception, String, Object)

Initializes a new instance of the UITestControlNotAvailableException class by using the provided error message, UI test control, and source.

UITestControlNotAvailableException(String, Object)

Initializes a new instance of the UITestControlNotAvailableException class by using the provided UI control element and source of the exception.

UITestControlNotAvailableException(String, String, Object)

Initializes a new instance of the UITestControlNotAvailableException class by using the provided message, the name of the UI test control, and the control that is the source of the exception.

Properties

BasicMessage

Gets the basic error message.

(Inherited from UITestException)
DefaultMessage

Gets the default message as it is set in configuration.

ErrorInfo

Gets or sets information about the UI test action that caused the exception.

(Inherited from UITestException)
ExceptionSource

Gets or sets the control that is the source of this exception.

(Inherited from UITestException)
HResult

Gets or sets the HRESULT for this exception.

(Inherited from UITestException)
Message

Gets the message that was provided when this exception object was created.

(Inherited from UITestException)

Methods

GetObjectData(SerializationInfo, StreamingContext) (Inherited from UITestException)
SetHResult(UInt32)

Sets the corresponding HRESULT for this exception.

(Inherited from UITestException)

Applies to