Verify list objects automatically

I am working on a test for a web form. Each item on this form contains subitems and subitems also contains subitems and so on. Assertions should be placed on each list items, not just on the clicked one. It counts at least 3-5 new list items after each click.

hi,
get your elements to list and verify there

needed more info what you are doing

As Timo says, click on the first subitem, maybe wait until sub-subitems are visible, or clickable, then verify elements are visible, not visible; or checked, not checked… It sounds like a perfect test plan.