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:
- WhichMatch(Locator) - Specify a Locator which should be used to filter the elements which are found.
- AndNameThem(string) - Specify a human-readable name for the collection of elements which are found.
Constructors
FindElementsBuilder(ITarget)
Initializes a new instance of the FindElementsBuilder class with the specified target.
public FindElementsBuilder(ITarget target)
Parameters
targetITargetThe 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
namestringThe 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
locatorLocatorThe locator to filter the elements.
Returns
- FindElementsBuilder
The current instance of FindElementsBuilder.
Operators
implicit operator SingleElementPerformableWithResultAdapter<SeleniumElementCollection>(FindElementsBuilder)
Converts a FindElementsBuilder to a SingleElementPerformableWithResultAdapter<TResult>.
public static implicit operator SingleElementPerformableWithResultAdapter<SeleniumElementCollection>(FindElementsBuilder builder)
Parameters
builderFindElementsBuilderThe FindElementsBuilder instance to convert.