RanorexRanorex Documentation
BuildElementPath Method (relativeParent, element, mode)
NamespacesRanorex.CoreRxPathBuildElementPath(Element, Element, PathBuildMode)
Builds a RanoreXPath for a given element.
Declaration Syntax
C#Visual BasicVisual C++
public static RxPath BuildElementPath(
	Element relativeParent,
	Element element,
	PathBuildMode mode
)
Public Shared Function BuildElementPath ( _
	relativeParent As Element, _
	element As Element, _
	mode As PathBuildMode _
) As RxPath
public:
static RxPath^ BuildElementPath(
	Element^ relativeParent, 
	Element^ element, 
	PathBuildMode mode
)
Parameters
relativeParent (Element)
The ancestor element to which the path should be relative to. If this parameter is null, an absolute path is built.
element (Element)
The node to build the path for.
mode (PathBuildMode)
The path building mode. This basically controls the degree of optimization applied to the path.
Return Value
The path of the specified element relative to the specified parent element.

Assembly: Ranorex.Core (Module: Ranorex.Core) Version: 3.2.3.16825 (3.2.3.16825)