I would like to find a way to get the element from a Text with locator
I try to use
await page.locator(f'td:below(:text("{name}"))').first_text_content()
below the name on site, the first element is what i want, but when i use the function it returned '-', so i use all_text_contents instead of first_text_content()
, so i get a list ['-', '','','','','','Element i want']
.
Can i get element i want withou having to use index element, i try to use a filter, but i didnt get it.