SelectFirst(String) Method

Definition

Assembly HeadlessTestingFramework.dll

Selects the first node matching the XPath expression.

public T? SelectFirst<T>(string xpath)
    where T : class

Type parameters

T
The type to cast result to.

Parameters

xpath
String

The XPath expression.

Returns

{T}
The first matching node, or null.