Hi,
in case you have recorded some steps but just missed out on to adding
into your projects via code generation of the same, a pop up
confirmation gets flashed if you wish to discard changes. It can be
done in a very efficient manner as is underlined below in the post
with screenshots of the relevant stuff.
http://www.articlesontesting.com/2010/10/coded-ui-automation-testing-walkthrough_9957.html
Remain posted as the web is hosted on articles on testing .