Table of Contents

Class FindElementsBuilder

Namespace
CSF.Screenplay.Selenium.Builders
Assembly
CSF.Screenplay.Selenium.dll

A builder class for finding a collection of elements within a specified target.

public class FindElementsBuilder : IGetsPerformableWithResult<SeleniumElementCollection>
Inheritance
FindElementsBuilder
Implements
Inherited Members

Remarks

This builder offers two methods to configure the finding of elements:

Constructors

FindElementsBuilder(ITarget)

Initializes a new instance of the FindElementsBuilder class with the specified target.

public FindElementsBuilder(ITarget target)

Parameters

target ITarget

The target within which elements will be found.

Methods

AndNameThem(string)

Specifies a human-readable name for the collection of elements which are found.

public FindElementsBuilder AndNameThem(string name)

Parameters

name string

The name for the collection of elements.

Returns

FindElementsBuilder

The current instance of FindElementsBuilder.

WhichMatch(Locator)

Specifies a Locator which should be used to filter the elements which are found.

public FindElementsBuilder WhichMatch(Locator locator)

Parameters

locator Locator

The locator to filter the elements.

Returns

FindElementsBuilder

The current instance of FindElementsBuilder.

Operators

implicit operator SingleElementPerformableWithResultAdapter<SeleniumElementCollection>(FindElementsBuilder)

public static implicit operator SingleElementPerformableWithResultAdapter<SeleniumElementCollection>(FindElementsBuilder builder)

Parameters

builder FindElementsBuilder

The FindElementsBuilder instance to convert.

Returns

SingleElementPerformableWithResultAdapter<SeleniumElementCollection>

A SingleElementPerformableWithResultAdapter<TResult> instance.