Click or drag to resize
Ranorex

FlavorElement Class

A container for flavor-specific element data which handles the default element properties.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    Ranorex.CoreFlavorElement
      More...

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
[SerializableAttribute]
public abstract class FlavorElement : MarshalByRefObject

The FlavorElement type exposes the following members.

Constructors
  NameDescription
Protected methodFlavorElement
Creates a new flavor element.
Top
Properties
  NameDescription
Protected propertyDontCache
Indicates that the element should not be cached. Defaults to false.
Public propertyElementRectangle
The client or screen rectangle of the flavor element depending on the value returned by IsClientRectangle.
Public propertyEnabled
True if the element is enabled. If the element cannot be enabled or disabled, return true.
Public propertyEnsureVisibleBehavior
Protected propertyEvaluateExpensiveAttributes
Gets a value indicating whether expensive attributes should be evaluated.
Public propertyFlavor
The flavor of the flavor element.
Public propertyFlavorName
The flavor name of the flavor element.
Public propertyForceGeometricSearchAll
Determines if the ElementRectangle is expected to be outside the bounds of its parent rectangle, and might be invisible. Forces FindChildFromPointByRectangle() to switch to 'search all' behavior.
Public propertyHasFocus
True if the element has the focus.
Public propertyIsClientRectangle
Determines if the ElementRectangle property returns client or screen coordinates.
Public propertyIsUidDomainRoot
Gets a value indicating whether this flavor element can act as a unique id domain root.
Protected propertyMinPathAttributes
Indicates that the minimum number of attributes to use when creating an RxPath location step for this element. Defaults to 0.
Public propertySupportsNativePathSearch
Indicates whether this flavor element supports searching for native RxPaths
Public propertyValid
True if the flavor element is still valid.
Public propertyVisible
True if the element is visible.
Top
Methods
  NameDescription
Protected methodStatic memberAssertArgumentType(Type, Object)
Validates the type of an argument.
Protected methodStatic memberAssertArgumentType(Type, Object, Boolean)
Validates the type of an argument.
Protected methodStatic memberAssertArgumentTypes(Type, Object)
Validates a list of argument objects against a list of types.
Protected methodStatic memberAssertArgumentTypes(Type, Object, Boolean)
Validates a list of argument objects against a list of types.
Public methodCanReplace
Returns a value specifying if this flavor element can replace elem.
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodEnsureVisible
Ensures that the flavor element is visible.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFocus
Focuses the flavor element, if possible.
Public methodGetAttributeValue
Needs to be implemented for attribute value read access.
Public methodGetChildLineageFromPoint
Returns a list of flavor elements that is the lineage to the flavor element at the specified screen location.
Public methodGetChildLineageFromUid
Gets the child lineage from the current element to the element with the given unique id.
Public methodGetChildLineagesFromPath
Gets the child lineages from the current element to the elements with the given RxPath.
Public methodGetDynamicDescriptors
Gets the descriptors for the dynamic attributes and actions that the element supports.
Public methodGetElementCapabilities
Supplies the role, a list of capabilities and a preferred capability names to the caller. This method called when building a new element from the flavor element.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetInitialValues
Gets the initial cacheable values which are then stored in the active cache session, if any.
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodGetRuntimeTokenValues
Gets the runtime token values. This must be implemented by the flavors.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodHitTest
Performs an optional hit test on a point within the element's rectangle. The default implementation returns 'true'.
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodInvokeAction
Needs to be implemented for element action invocation.
Public methodIsEqual
Compares to flavor elements. This should be implemented using the best comparison method available.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Public methodSetAttributeValue
Needs to be implemented for attribute value write access.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also
Inheritance Hierarchy