I kindly need your support
Im using playwright for testing web pages.
When i use id tag as locator, I can find direct childs of tagged div :
page.locator('#id_tag > div').all()
Now i try to use test_id tag and i need to find direct childs:
page.get_by_test_id("test_id_tag").locator("div").all(),
But this “equals” to
locator('#test_id_tag >> div')
So playwright returns direct child, but also sub-childs, sub-sub-childs etc.
Question: is it any way to find only direct-child div’s using get_by_test_id(“test_id_tag”) ?
Appreciate your advices