This thread is trying to answer question "How to count the elements in a div from a form in .NET?"
I think that @d3333333's on it. I was going to say that you can get the count from any locator https://playwright.dev/dotnet/docs/api/class-locator#locator-count.
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].