Click or drag to resize
Ranorex

ElementFromPath Method

Converts a string to an element instance by searching the root.

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static Element FromPath(
	string path
)

Parameters

path
Type: SystemString
The search path.

Return Value

Type: Element
The result element.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf path is null.
ElementNotFoundExceptionIf no element is found.
RxPathExceptionIf the specified path is not valid.
Remarks
The DefaultSearchTimeout is used to search for the specified path.
See Also