Class SingleElementQuery
- Namespace
- CSF.Screenplay.Selenium.Questions
- Assembly
- CSF.Screenplay.Selenium.dll
Provides a factory method for creating instances of SingleElementQuery<TResult>.
public static class SingleElementQuery
- Inheritance
-
SingleElementQuery
- Inherited Members
Methods
From<TResult>(IQuery<TResult>)
Creates a new instance of SingleElementQuery<TResult> with the specified query.
public static SingleElementQuery<TResult> From<TResult>(IQuery<TResult> query)
Parameters
queryIQuery<TResult>The query to be used for retrieving the value from the Selenium element.
Returns
- SingleElementQuery<TResult>
A new instance of SingleElementQuery<TResult>.
Type Parameters
TResultThe type of the result returned by the query.