The recording process requires that SnapTest auto-generates a unique way to "select" an element. There are many strategies out there for using the most resilient selectors, and many of them are excellent. The two most notable ones are using an "id" exclusively and/or using a "test-id" attribute. Unfortunately, not all testers have access to add testing specific code, and will need other ways to get a handle on an element.
SnapTest lets you choose the selector strategies you need from the following list:
SnapTest will walk down this list looking for a unique selector. Re-order or toggle any of the strategies for your application needs via the settings menu: