Class WpfGroupElement
- Namespace
- Ranorex
- Assembly
- Ranorex.Plugin.Wpf.dll
Capability of a group of WPF elements.
public class WpfGroupElement : Adapter, IAdapter
- Inheritance
-
WpfGroupElement
- Implements
- Inherited Members
Constructors
WpfGroupElement()
Creates a new WpfGroupElement adapter instance. This constructor is used internally by the Ranorex Core Framework for performance issues!
protected WpfGroupElement()
WpfGroupElement(Element)
Creates a new WpfGroupElement adapter instance.
public WpfGroupElement(Element element)
Parameters
elementElementThe element to create the adapter for.
Exceptions
- NullReferenceException
If
elementisnull.- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
Properties
RanorexGroupLeaderId
GUID used to identify the leader of a DependencyObjectGroup
public virtual Guid RanorexGroupLeaderId { get; }
Property Value
RanorexGroupMemberIds
GUIDs used to identify the members of a DependencyObjectGroup
public virtual Guid[] RanorexGroupMemberIds { get; }
Property Value
- Guid[]
RanorexGroupObjectId
GUID used to identify DependencyObjectGroup
public virtual Guid RanorexGroupObjectId { get; }
Property Value
RequiredCapabilities
Capabilities required by the adapter implementation.
protected override string[] RequiredCapabilities { get; }
Property Value
- string[]
Methods
FromElement(Element)
Converts an Element to an instance of this class.
public static WpfGroupElement FromElement(Element element)
Parameters
elementElementThe element to convert.
Returns
- WpfGroupElement
The WpfGroupElement.
Exceptions
- ArgumentNullException
If
elementisnull.- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
FromPath(string)
Converts a string to an instance of this class by searching the root.
public static WpfGroupElement FromPath(string path)
Parameters
pathstringThe search path.
Returns
- WpfGroupElement
The WpfGroupElement.
Remarks
The DefaultSearchTimeout is used to search for the specified path.
Exceptions
- ArgumentNullException
If
pathisnull.- RxPathException
If the specified
pathis not valid.- ElementNotFoundException
If no element is found.
- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
Operators
implicit operator WpfGroupElement(Element)
Implicitly converts an Element to an instance of this class.
public static implicit operator WpfGroupElement(Element element)
Parameters
elementElementThe element to convert.
Returns
- WpfGroupElement
The WpfGroupElement.
Exceptions
- ArgumentNullException
If
elementisnull.- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
implicit operator WpfGroupElement(string)
Implicitly converts a string to an instance of this class by searching the root.
public static implicit operator WpfGroupElement(string path)
Parameters
pathstringThe search path.
Returns
- WpfGroupElement
The WpfGroupElement.
Remarks
The DefaultSearchTimeout is used to search for the specified path.
Exceptions
- ArgumentNullException
If
pathisnull.- RxPathException
If the specified
pathis not valid.- ElementNotFoundException
If no element is found.
- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.