Interface ICanReportForElements
- Namespace
- CSF.Screenplay.Selenium.Elements
- Assembly
- CSF.Screenplay.Selenium.dll
Similar to ICanReport but provides access to a collection of Selenium elements to augment the report data.
public interface ICanReportForElements
Remarks
This interface is often combined with either IElementCollectionPerformableWithResult<TResult> for specialised performables which interact with collections of Selenium elements.
Methods
GetReportFragment(Actor, Lazy<SeleniumElementCollection>, IFormatsReportFragment)
Counterpart to GetReportFragment(Actor, IFormatsReportFragment) except that this method also offers a Selenium element collection.
ReportFragment GetReportFragment(Actor actor, Lazy<SeleniumElementCollection> elements, IFormatsReportFragment formatter)
Parameters
actorActorAn actor for whom to write the report fragment
elementsLazy<SeleniumElementCollection>The Selenium elements for which the report is being written
formatterIFormatsReportFragmentA report-formatting service
Returns
- ReportFragment
A human-readable report fragment.
Remarks
Please see the documentation for GetReportFragment(Actor, IFormatsReportFragment) for more information.