// Find row containing user email and click edit button:
Locator targetRow = page.locator("table tbody tr")
.filter(new Locator.FilterOptions().setHasText("alex@targetqa.com"));
targetRow.getByRole(AriaRole.BUTTON, new Locator.GetByRoleOptions().setName("Edit")).click();// Extract all table cell texts into a Java List:
List<String> names = page.locator("table tbody tr td:first-child").allInnerTexts();