I am having the same problem. The following code was macro recorded:
Please Login or Register  to view this content.
But when you try to run the recorded code, you get the message as indicated in the title of this post.

Am I missing a reference?