Class QtWindow
- Namespace
- Ranorex
- Assembly
- Ranorex.Plugin.Qt.dll
The element is Qt application window.
public class QtWindow : Adapter, IAdapter
- Inheritance
-
QtWindow
- Implements
- Inherited Members
Constructors
QtWindow()
Creates a new QtWindow adapter instance. This constructor is used internally by the Ranorex Core Framework for performance issues!
protected QtWindow()
QtWindow(Element)
Creates a new QtWindow adapter instance.
public QtWindow(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
AppName
The name of the application this window belongs to.
public virtual string AppName { get; }
Property Value
AppVersion
The version of the application this window belongs to.
public virtual string AppVersion { get; }
Property Value
CurrentTooltip
The current tooltip text if a tooltip is visible.
public virtual string CurrentTooltip { get; }
Property Value
QtVersion
The Qt version of the application this window belongs to.
public virtual string QtVersion { get; }
Property Value
RanorexLibVersion
The version of the Ranorex Qt automation library.
public virtual string RanorexLibVersion { 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 QtWindow FromElement(Element element)
Parameters
elementElementThe element to convert.
Returns
- QtWindow
The QtWindow.
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 QtWindow FromPath(string path)
Parameters
pathstringThe search path.
Returns
- QtWindow
The QtWindow.
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 QtWindow(Element)
Implicitly converts an Element to an instance of this class.
public static implicit operator QtWindow(Element element)
Parameters
elementElementThe element to convert.
Returns
- QtWindow
The QtWindow.
Exceptions
- ArgumentNullException
If
elementisnull.- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
implicit operator QtWindow(string)
Implicitly converts a string to an instance of this class by searching the root.
public static implicit operator QtWindow(string path)
Parameters
pathstringThe search path.
Returns
- QtWindow
The QtWindow.
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.