Table of Contents

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

performable ISingleElementPerformableWithResult<TResult>

The performable to be adapted.

target ITarget

The target element for the performable.

doNotThrowOnMissingElement bool

If 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

TResult

The type of the result.