atata-framework / atata

C#/.NET test automation framework for web
https://atata.io
Apache License 2.0
490 stars 80 forks source link

`TableHeaderList<TItem, TOwner>` with string indexer #830

Closed YevgeniyShunevych closed 8 months ago

YevgeniyShunevych commented 8 months ago

Create TableHeaderList<TItem, TOwner> class inherited from ControlList<TItem, TOwner> with indexer:

public TItem this[string headerText] { get; }

Change the property type of Table<THeader, TRow, TOwner>.Headers to the newly created type:

public TableHeaderList<THeader, TOwner> Headers { get; }