Table of Contents

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

element Element

The element to create the adapter for.

Exceptions

NullReferenceException

If element is null.

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

string

Id

The identifier of the flex object from HTML code.

public virtual string Id { get; }

Property Value

string

Movie

The name of the SWF file used by the flash player.

public virtual string Movie { get; }

Property Value

string

RanorexLibVersion

The version of the Ranorex instrumentation library/preloader.

public virtual string RanorexLibVersion { get; }

Property Value

string

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

element Element

The element to convert.

Returns

FlexObject

The FlexObject.

Exceptions

ArgumentNullException

If element is null.

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

path string

The search path.

Returns

FlexObject

The FlexObject.

Remarks

The DefaultSearchTimeout is used to search for the specified path.

Exceptions

ArgumentNullException

If path is null.

RxPathException

If the specified path is 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

element Element

The element to convert.

Returns

FlexObject

The FlexObject.

Exceptions

ArgumentNullException

If element is null.

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

path string

The search path.

Returns

FlexObject

The FlexObject.

Remarks

The DefaultSearchTimeout is used to search for the specified path.

Exceptions

ArgumentNullException

If path is null.

RxPathException

If the specified path is not valid.

ElementNotFoundException

If no element is found.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.