Click or drag to resize
Ranorex

ElementFindFromUid Method

Finds a descendant element by its unique identifier attribute (defined by the owner flavor UidAttribute name).

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public bool FindFromUid(
	string uidValue,
	out Element result
)

Parameters

uidValue
Type: SystemString
The unique id value.
result
Type: Ranorex.CoreElement
The result element, if anything was found.

Return Value

Type: Boolean
Returns true if an element was found for the given unique id value.

Implements

IElementFindFromUid(String, Element)
Remarks
For this to work, the underlying flavor element has to implement GetChildLineageFromUid() and has to set IsUidDomainRoot properly.
See Also