Table of Contents

Interface ISingleElementPerformable

Namespace
CSF.Screenplay.Selenium.Actions
Assembly
CSF.Screenplay.Selenium.dll

Similar to IPerformable but provides access to a Selenium WebDriver and a Selenium element.

public interface ISingleElementPerformable : ICanReportForElement
Inherited Members

Remarks

This interface is specialised for performables which interact with a single Selenium element. It allows for the provision of some of the boilerplate to set up such a performable.

See IPerformable for more information about how this interface would be used in general terms. In order to actually use implementations of this interface as performables, they should be wrapped in an SingleElementPerformableAdapter.

Methods

PerformAsAsync(ICanPerform, IWebDriver, Lazy<SeleniumElement>, CancellationToken)

Counterpart to PerformAsAsync(ICanPerform, CancellationToken) except that this method also offers a Selenium WebDriver and element.

ValueTask PerformAsAsync(ICanPerform actor, IWebDriver webDriver, Lazy<SeleniumElement> element, CancellationToken cancellationToken = default)

Parameters

actor ICanPerform

The actor that is performing.

webDriver IWebDriver

The Selenium WebDriver provided from the actor's abilities.

element Lazy<SeleniumElement>

The single Selenium Element upon which this method should operate.

cancellationToken CancellationToken

An optional cancellation token by which to abort the performable.

Returns

ValueTask

A task which completes when the performable represented by the current instance is complete.