 | RxPathBuilderBuildElementPath Method (Element, Element, PathBuildMode, Boolean) |
Builds a RanoreXPath for a given element.
Namespace:
Ranorex.Core
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static RxPath BuildElementPath(
Element relativeParent,
Element element,
PathBuildMode mode,
bool forceRobustPath
)
Public Shared Function BuildElementPath (
relativeParent As Element,
element As Element,
mode As PathBuildMode,
forceRobustPath As Boolean
) As RxPath
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. - forceRobustPath
- Type: SystemBoolean
Specifies if building robuts path sholub be forced.
Return Value
Type:
RxPathThe path of the specified element relative to the specified parent element.
See Also