You can simply use this in the browser console to get a friendly XPath API:
$x("//my/selector")
Very handy for testing XPath expressions for Selenium or Playwright tests, if there is no data-testid attribute.