“Spy” and “Recorder” tools are short for Web pages with dynamic id attributes. You should not rely on them blindly.
Have a look at this advice.
In most cases, you can write alternative locators without using id attribute.
In order to be able to, you need to study CSS Selector and/or XPath technology. There are some good free tutorials:
Read this article for a couple of hours, then you would soon be capable to. 
1 Like