Question: can we use xpath in cypress?
Answer: cypress-xpath Adds XPath command. This repo is also a good example of using custom commands to do retries, provide TypeScript definitions, etc.