Working with Objects Selection Method for Spy/Record Web

This is a companion discussion topic for the original entry at

In the process of determining why a menu option cannot be clicked I discovered the reason was that the XPath that was recorded is not being recognized. Why is the Object Spy tool putting XPATH that ITSELF cannot recognize? But after I change it, the test works fine.

XPATH recorded - //a[@id=‘FooBar’] <---- FAILS with error that it cannot find this.

CHANGED XPATH - id(“FooBar”) <---- PASS