Class FlexObject
- Namespace
- Ranorex
- Assembly
- Ranorex.Plugin.Flex.dll
This element is a flex or flash application.
public class FlexObject : Adapter, IAdapter
- Inheritance
-
FlexObject
- Implements
- Inherited Members
Constructors
FlexObject()
Creates a new FlexObject adapter instance. This constructor is used internally by the Ranorex Core Framework for performance issues!
protected FlexObject()
FlexObject(Element)
Creates a new FlexObject adapter instance.
public FlexObject(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
FlashVersion
Flash player version information.
public virtual string FlashVersion { get; }
Property Value
Id
The identifier of the flex object from HTML code.
public virtual string Id { get; }
Property Value
Movie
The name of the SWF file used by the flash player.
public virtual string Movie { get; }
Property Value
RanorexLibVersion
The version of the Ranorex instrumentation library/preloader.
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 FlexObject FromElement(Element element)
Parameters
elementElementThe element to convert.
Returns
- FlexObject
The FlexObject.
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 FlexObject FromPath(string path)
Parameters
pathstringThe search path.
Returns
- FlexObject
The FlexObject.
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 FlexObject(Element)
Implicitly converts an Element to an instance of this class.
public static implicit operator FlexObject(Element element)
Parameters
elementElementThe element to convert.
Returns
- FlexObject
The FlexObject.
Exceptions
- ArgumentNullException
If
elementisnull.- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
implicit operator FlexObject(string)
Implicitly converts a string to an instance of this class by searching the root.
public static implicit operator FlexObject(string path)
Parameters
pathstringThe search path.
Returns
- FlexObject
The FlexObject.
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.