Class SingleElementPerformableWithResultAdapter
- Namespace
- CSF.Screenplay.Selenium.Questions
- Assembly
- CSF.Screenplay.Selenium.dll
Static helper methods for creating instances of SingleElementPerformableWithResultAdapter<TResult>.
public static class SingleElementPerformableWithResultAdapter
- Inheritance
-
SingleElementPerformableWithResultAdapter
- Inherited Members
Methods
From<TResult>(ISingleElementPerformableWithResult<TResult>, ITarget, bool)
Creates a new instance of SingleElementPerformableWithResultAdapter<TResult> from the specified performable and target.
public static SingleElementPerformableWithResultAdapter<TResult> From<TResult>(ISingleElementPerformableWithResult<TResult> performable, ITarget target, bool doNotThrowOnMissingElement = false)
Parameters
performableISingleElementPerformableWithResult<TResult>The performable to be adapted.
targetITargetThe target element for the performable.
doNotThrowOnMissingElementboolIf set to true then this performable will not throw an exception when the element does not exist.
Returns
- SingleElementPerformableWithResultAdapter<TResult>
A new instance of SingleElementPerformableWithResultAdapter<TResult>.
Type Parameters
TResultThe type of the result.