Selects the first element returned by a XPath-query. The command belongs to the group "Control".
Parameter Name | Description | Type |
---|---|---|
NodeRef | The name of the reference to the node on which the XPath-query is executed. | nodeReference |
SelectedEleRef | The name of the reference under which the selected element will be accessible. | saveElementReference |
XPath | The XPath-query statement. | xpath |
<SelectFirst NodeRef="$myElement" XPath="//element[@Name='Color']" SelectedEleRef="$mySelectedElement"/>