page.get_by_text('Test').locator("xpath=../../../").nth(2).locator('data-testid=icon')