Class
WpfTestElement

Actions for automating WPF elements.

Definition

Namespace:ArtOfTest.WebAii.Controls.Xaml.Wpf

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class WpfTestElement : FrameworkElement, IAutomationPeer, IPeerConverter, IFrameworkElement, ITargetElement

Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementWpfTestElement

Derived Classes: AccessTextAdornedElementPlaceholderAdornerAdornerLayerContentPresenterControlDecoratorDocumentPageViewDocumentReferenceFixedPageGlyphsGridViewRowPresenterBaseHwndHostHyperlinkImageInkCanvasItemsPresenterMediaElementPagePageContentPanelPopupShapeTextBlockTickBarToolBarTrayTrackViewport3D

Implements: IAutomationPeerIFrameworkElementIPeerConverterITargetElement

Inherited Members FrameworkElement.ActualWidthPropertyFrameworkElement.ActualHeightPropertyFrameworkElement.WidthPropertyFrameworkElement.HeightPropertyFrameworkElement.MinWidthPropertyFrameworkElement.MaxWidthPropertyFrameworkElement.MinHeightPropertyFrameworkElement.MaxHeightPropertyFrameworkElement.HorizontalAlignmentPropertyFrameworkElement.VerticalAlignmentPropertyFrameworkElement.MarginPropertyFrameworkElement.DesiredSizePropertyFrameworkElement.RenderSizePropertyFrameworkElement.NamePropertyFrameworkElement.TagPropertyFrameworkElement.DataContextPropertyFrameworkElement.OpacityPropertyFrameworkElement.ClipPropertyFrameworkElement.RenderTransformPropertyFrameworkElement.OpacityMaskPropertyFrameworkElement.RenderTransformOriginPropertyFrameworkElement.IsHitTestVisiblePropertyFrameworkElement.VisibilityPropertyFrameworkElement.GetIdentifier(out string, out string)FrameworkElement.IsChild(FrameworkElement)FrameworkElement.GetChildTagIndex(FrameworkElement)FrameworkElement.InitializeMappings(MappingsCollection)FrameworkElement.As<T>()FrameworkElement.CastAs<T>()FrameworkElement.SetProxy(bool)FrameworkElement.SetUid(string)FrameworkElement.SetFindInfo(VisualFindInfo)FrameworkElement.SetXamlTag(string)FrameworkElement.AssignReference(AutomationReference)FrameworkElement.KeyPress(Keys, int, int, int)FrameworkElement.GetRectangle()FrameworkElement.GetRectangle(FrameworkElement)FrameworkElement.GetIntRectangle()FrameworkElement.IsHitTest()FrameworkElement.IsHitTest(bool)FrameworkElement.IsHitTest(FrameworkElement, bool)FrameworkElement.Highlight()FrameworkElement.Highlight(bool)FrameworkElement.GetRealType()FrameworkElement.Parent()FrameworkElement.Parent<T>()FrameworkElement.Parent(string)FrameworkElement.Parent(string, bool)FrameworkElement.GetNextSibling()FrameworkElement.GetPrevSibling()FrameworkElement.NextSibling(string)FrameworkElement.NextSibling<T>()FrameworkElement.PreviousSibling(string)FrameworkElement.PreviousSibling<T>()FrameworkElement.AnySibling<T>()FrameworkElement.AnySibling(string)FrameworkElement.GetScreenRectangle()FrameworkElement.ScrollToVisible()FrameworkElement.ScrollToVisible(ScrollToVisibleType)FrameworkElement.EnsureClickable()FrameworkElement.ToXml()FrameworkElement.Refresh()FrameworkElement.Equals(object)FrameworkElement.GetHashCode()FrameworkElement.GetProperties()FrameworkElement.GetAttachedProperty<T>(string, string)FrameworkElement.SetAttachedProperty<T>(string, string, T)FrameworkElement.SetFocus()FrameworkElement.ValidateMouseLocationIfNeeded(Point)FrameworkElement.GetStringPresentation()FrameworkElement.ToRealObject()FrameworkElement.FromRealObject(object)FrameworkElement.ValidateType(Type, string)FrameworkElement.GetKnownControlTypes(TechnologyType)FrameworkElement.RegisterElement(Type, string)FrameworkElement.InitKnownWpfControlTypes()FrameworkElement.InitKnownSilverlightControlTypes()FrameworkElement.InitKnownXamlControlTypes(Type)FrameworkElement.GetControlTypeFromInterface(Type)FrameworkElement.Match(IFindExpression)FrameworkElement.SetDepth(int)FrameworkElement.AddChildNode(ITargetElement)FrameworkElement.SetClosingTag(ITargetElement)FrameworkElement.GetChildren()FrameworkElement.GetParent()FrameworkElement.GetHostParent()FrameworkElement.SetParent(ITargetElement)FrameworkElement.GetUniqueHashCode()FrameworkElement.ToString()FrameworkElement.Capture()FrameworkElement.CaptureImage()FrameworkElement.GetProperty<T>(string)FrameworkElement.GetPropertyTypeSafe(string)FrameworkElement.GetAutomationProperty(string)FrameworkElement.SetProperty(string, object)FrameworkElement.ActualWidthFrameworkElement.ActualHeightFrameworkElement.WidthFrameworkElement.HeightFrameworkElement.MinWidthFrameworkElement.MaxWidthFrameworkElement.MinHeightFrameworkElement.MaxHeightFrameworkElement.HorizontalAlignmentFrameworkElement.VerticalAlignmentFrameworkElement.MarginFrameworkElement.DesiredSizeFrameworkElement.RenderSizeFrameworkElement.NameFrameworkElement.OpacityFrameworkElement.ClipFrameworkElement.RenderTransformFrameworkElement.OpacityMaskFrameworkElement.RenderTransformOriginFrameworkElement.IsHitTestVisibleFrameworkElement.VisibilityFrameworkElement.UidFrameworkElement.MappingsFrameworkElement.AutomationIdFrameworkElement.XamlTagBaseFrameworkElement.TextFrameworkElement.TextBlockContentFrameworkElement.TextLiteralContentFrameworkElement.UserFrameworkElement.XamlTagFrameworkElement.WaitFrameworkElement.FindFrameworkElement.ApplicationFrameworkElement.AbsoluteTagIndexFrameworkElement.TagNameIndexFrameworkElement.AbsoluteSiblingTagIndexFrameworkElement.EnableValidateMouseLocationFrameworkElement.ToolTipTextFrameworkElement.ChildrenFrameworkElement.TechnologyTypeFrameworkElement.DepthFrameworkElement.IsTestRegionFrameworkElement.ParsedElementFrameworkElement.HostAutomationObject<FrameworkElement>.GetProperty(AutomationProperty)AutomationObject<FrameworkElement>.GetProperty(AutomationProperty, object)AutomationObject<FrameworkElement>.SetProperty(AutomationProperty, object)AutomationObject<FrameworkElement>.InvokeMethod(AutomationMethod, params object[])AutomationObject<FrameworkElement>.InvokeMethod(string, params object[])AutomationObject<FrameworkElement>.Serialize()AutomationObject<FrameworkElement>.Deserialize(string)AutomationObject<FrameworkElement>.ReferenceAutomationObject<FrameworkElement>.PropertyBag

Constructors

WpfTestElement()

Creates new instance of WpfTestElement class.

Declaration

cs-api-definition
public WpfTestElement()

Fields

AllowDropProperty

AllowDropProperty attached property.

Declaration

cs-api-definition
public static AutomationProperty AllowDropProperty

Field Value

AutomationProperty

BindingGroupProperty

BindingGroupProperty attached property.

Declaration

cs-api-definition
public static AutomationProperty BindingGroupProperty

Field Value

AutomationProperty

ClipToBoundsProperty

ClipToBoundsProperty attached property.

Declaration

cs-api-definition
public static AutomationProperty ClipToBoundsProperty

Field Value

AutomationProperty

ContextMenuProperty

ContextMenuProperty attached property.

Declaration

cs-api-definition
public static AutomationProperty ContextMenuProperty

Field Value

AutomationProperty

FlowDirectionProperty

FlowDirectionProperty attached property.

Declaration

cs-api-definition
public static AutomationProperty FlowDirectionProperty

Field Value

AutomationProperty

FocusableProperty

FocusableProperty attached property.

Declaration

cs-api-definition
public static AutomationProperty FocusableProperty

Field Value

AutomationProperty

ForceCursorProperty

ForceCursorProperty attached property.

Declaration

cs-api-definition
public static AutomationProperty ForceCursorProperty

Field Value

AutomationProperty

InputScopeProperty

InputScopeProperty attached property.

Declaration

cs-api-definition
public static AutomationProperty InputScopeProperty

Field Value

AutomationProperty

IsEnabledProperty

IsEnabledProperty attached property.

Declaration

cs-api-definition
public static AutomationProperty IsEnabledProperty

Field Value

AutomationProperty

IsFocusedProperty

IsFocusedProperty attached property.

Declaration

cs-api-definition
public static AutomationProperty IsFocusedProperty

Field Value

AutomationProperty

IsKeyboardFocusWithinProperty

IsKeyboardFocusWithinProperty attached property.

Declaration

cs-api-definition
public static AutomationProperty IsKeyboardFocusWithinProperty

Field Value

AutomationProperty

IsKeyboardFocusedProperty

IsKeyboardFocusedProperty attached property.

Declaration

cs-api-definition
public static AutomationProperty IsKeyboardFocusedProperty

Field Value

AutomationProperty

IsMouseCaptureWithinProperty

IsMouseCaptureWithinProperty attached property.

Declaration

cs-api-definition
public static AutomationProperty IsMouseCaptureWithinProperty

Field Value

AutomationProperty

IsMouseCapturedProperty

IsMouseCapturedProperty attached property.

Declaration

cs-api-definition
public static AutomationProperty IsMouseCapturedProperty

Field Value

AutomationProperty

IsMouseDirectlyOverProperty

IsMouseDirectlyOverProperty attached property.

Declaration

cs-api-definition
public static AutomationProperty IsMouseDirectlyOverProperty

Field Value

AutomationProperty

IsMouseOverProperty

IsMouseOverProperty attached property.

Declaration

cs-api-definition
public static AutomationProperty IsMouseOverProperty

Field Value

AutomationProperty

IsStylusCaptureWithinProperty

IsStylusCaptureWithinProperty attached property.

Declaration

cs-api-definition
public static AutomationProperty IsStylusCaptureWithinProperty

Field Value

AutomationProperty

IsStylusCapturedProperty

IsStylusCapturedProperty attached property.

Declaration

cs-api-definition
public static AutomationProperty IsStylusCapturedProperty

Field Value

AutomationProperty

IsStylusDirectlyOverProperty

IsStylusDirectlyOverProperty attached property.

Declaration

cs-api-definition
public static AutomationProperty IsStylusDirectlyOverProperty

Field Value

AutomationProperty

IsStylusOverProperty

IsStylusOverProperty attached property.

Declaration

cs-api-definition
public static AutomationProperty IsStylusOverProperty

Field Value

AutomationProperty

IsVisibleProperty

IsVisibleProperty attached property.

Declaration

cs-api-definition
public static AutomationProperty IsVisibleProperty

Field Value

AutomationProperty

LayoutTransformProperty

LayoutTransformProperty attached property.

Declaration

cs-api-definition
public static AutomationProperty LayoutTransformProperty

Field Value

AutomationProperty

OverridesDefaultStyleProperty

OverridesDefaultStyleProperty attached property.

Declaration

cs-api-definition
public static AutomationProperty OverridesDefaultStyleProperty

Field Value

AutomationProperty

SnapsToDevicePixelsProperty

SnapsToDevicePixelsProperty attached property.

Declaration

cs-api-definition
public static AutomationProperty SnapsToDevicePixelsProperty

Field Value

AutomationProperty

Properties

AllowDrop

Reflects the AllowDrop property of the element under test.

Declaration

cs-api-definition
public bool AllowDrop { get; set; }

Property Value

bool

BindingGroup

Reflects the BindingGroup property of the element under test.

Declaration

cs-api-definition
public BindingGroup BindingGroup { get; set; }

Property Value

BindingGroup

ClipToBounds

Reflects the ClipToBounds property of the element under test.

Declaration

cs-api-definition
public bool ClipToBounds { get; set; }

Property Value

bool

ComputedVisibility

Reflects the ComputedVisibility property of the element under test.

Declaration

cs-api-definition
public override Visibility ComputedVisibility { get; }

Property Value

Visibility

Overrides FrameworkElement.ComputedVisibility

ContextMenu

Reflects the ContextMenu property of the element under test.

Declaration

cs-api-definition
public ContextMenu ContextMenu { get; set; }

Property Value

ContextMenu

FlowDirection

Reflects the FlowDirection property of the element under test.

Declaration

cs-api-definition
public FlowDirection FlowDirection { get; set; }

Property Value

FlowDirection

Focusable

Reflects the Focusable property of the element under test.

Declaration

cs-api-definition
public bool Focusable { get; set; }

Property Value

bool

ForceCursor

Reflects the ForceCursor property of the element under test.

Declaration

cs-api-definition
public bool ForceCursor { get; set; }

Property Value

bool

InputScope

Reflects the InputScope property of the element under test.

Declaration

cs-api-definition
public InputScope InputScope { get; set; }

Property Value

InputScope

IsEnabled

Reflects the IsEnabled property of the element under test.

Declaration

cs-api-definition
public bool IsEnabled { get; set; }

Property Value

bool

IsFocused

Reflects the IsFocused property of the element under test.

Declaration

cs-api-definition
public bool IsFocused { get; set; }

Property Value

bool

IsKeyboardFocusWithin

Reflects the IsKeyboardFocusWithin property of the element under test.

Declaration

cs-api-definition
public bool IsKeyboardFocusWithin { get; set; }

Property Value

bool

IsKeyboardFocused

Reflects the IsKeyboardFocused property of the element under test.

Declaration

cs-api-definition
public bool IsKeyboardFocused { get; set; }

Property Value

bool

IsMouseCaptureWithin

Reflects the IsMouseCaptureWithin property of the element under test.

Declaration

cs-api-definition
public bool IsMouseCaptureWithin { get; set; }

Property Value

bool

IsMouseCaptured

Reflects the IsMouseCaptured property of the element under test.

Declaration

cs-api-definition
public bool IsMouseCaptured { get; set; }

Property Value

bool

IsMouseDirectlyOver

Reflects the IsMouseDirectlyOver property of the element under test.

Declaration

cs-api-definition
public bool IsMouseDirectlyOver { get; set; }

Property Value

bool

IsMouseOver

Reflects the IsMouseOver property of the element under test.

Declaration

cs-api-definition
public bool IsMouseOver { get; set; }

Property Value

bool

IsStylusCaptureWithin

Reflects the IsStylusCaptureWithin property of the element under test.

Declaration

cs-api-definition
public bool IsStylusCaptureWithin { get; set; }

Property Value

bool

IsStylusCaptured

Reflects the IsStylusCaptured property of the element under test.

Declaration

cs-api-definition
public bool IsStylusCaptured { get; set; }

Property Value

bool

IsStylusDirectlyOver

Reflects the IsStylusDirectlyOver property of the element under test.

Declaration

cs-api-definition
public bool IsStylusDirectlyOver { get; set; }

Property Value

bool

IsStylusOver

Reflects the IsStylusOver property of the element under test.

Declaration

cs-api-definition
public bool IsStylusOver { get; set; }

Property Value

bool

IsVisible

Reflects the IsVisible property of the element under test.

Declaration

cs-api-definition
public override bool IsVisible { get; }

Property Value

bool

Overrides FrameworkElement.IsVisible

OverridesDefaultStyle

Reflects the OverridesDefaultStyle property of the element under test.

Declaration

cs-api-definition
public bool OverridesDefaultStyle { get; set; }

Property Value

bool

SnapsToDevicePixels

Reflects the SnapsToDevicePixels property of the element under test.

Declaration

cs-api-definition
public bool SnapsToDevicePixels { get; set; }

Property Value

bool