Table of Contents

Namespace CSF.Screenplay.Selenium.Actions

Classes

ClearCookies

Represents an action to clear all browser cookies for the current site.

ClearLocalStorage

Represents an action to clear the browser's local storage for the current site.

ClearTheContents

Represents an action to clear the contents of a specified HTML element.

Click

A ISingleElementPerformable which represents an actor clicking upon a single HTML element.

DeleteTheCookie

Represents an action to delete a specific browser cookie by name.

DeselectAll

A ISingleElementPerformable which represents an actor deselecting all options from a <select> element.

DeselectByIndex

A ISingleElementPerformable which represents an actor deselecting an option from a <select> element, where the option is specified by its zero-based index within the available options.

DeselectByText

A ISingleElementPerformable which represents an actor deselecting an option from a <select> element, where the option is specified by its human-readable display text.

DeselectByValue

A ISingleElementPerformable which represents an actor deselecting an option from a <select> element, where the option is specified by its underlying value.

ExecuteJavaScript

An action which executes some arbitrary JavaScript in the web browser.

OpenUrl

Screenplay action which opens (navigates) directly to a specified URL using the actor's WebDriver.

SaveScreenshot

Screenplay action which saves a Selenium Screenshot instance as an asset file.

SelectByIndex

A ISingleElementPerformable which represents an actor selecting an option from a <select> element, where the option is specified by its zero-based index within the available options.

SelectByText

A ISingleElementPerformable which represents an actor selecting an option from a <select> element, where the option is specified by its human-readable display text.

SelectByValue

A ISingleElementPerformable which represents an actor selecting an option from a <select> element, where the option is specified by its underlying value.

SendKeys

A ISingleElementPerformable which represents an actor pressing some keys whilst focussed upon a single HTML element.

SingleElementPerformableAdapter

Adapter class which allows a ISingleElementPerformable to be used as an IPerformable.

Wait

A performable action that waits until a specified condition is met, or a timeout expires (whichever is sooner).

WaitForSomeTime

A performable action that waits for a specified amount of time.

WaitUntilPredicate

Provides methods to create wait predicates for Selenium WebDriver.

WaitUntilPredicate<T>

Represents a predicate that can be used to wait until a condition is true.

Interfaces

ISingleElementPerformable

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