Click or drag to resize
Ranorex

RxPathBuilderBuildElementPath Method (Element, Element, PathBuildMode)

Builds a RanoreXPath for a given element.

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static RxPath BuildElementPath(
	Element relativeParent,
	Element element,
	PathBuildMode mode
)

Parameters

relativeParent
Type: Ranorex.CoreElement
The ancestor element to which the path should be relative to. If this parameter is null, an absolute path is built.
element
Type: Ranorex.CoreElement
The node to build the path for.
mode
Type: Ranorex.CorePathBuildMode
The path building mode. This basically controls the degree of optimization applied to the path.

Return Value

Type: RxPath
The path of the specified element relative to the specified parent element.
See Also