Click or drag to resize
Ranorex

ElementHasCapability Method

Tests if the element possesses a certain capability (or role), by name.

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public bool HasCapability(
	string capName
)

Parameters

capName
Type: SystemString
The name of the capability to look for.

Return Value

Type: Boolean
True if the element has the capability or role.

Implements

IElementHasCapability(String)
See Also