3 Answers, 1 is accepted
I apologize it has taken so long to reply to your problem. This may be a case where instead of making the element truly invisible it is being moved off screen. Can you run the test, export the test results and attach the .zip file for us to study please? This will include the DOM at the time of failure that I can study to try and discover why it's not working as expected. I will also need a copy of your test (the .aii and matching .resx and .cs file).
Best wishes,Cody

Thank you for sending a test I can run. I see what's happening now. It is true step 36 in the test removes the error message about the phone number. It actually does it by removing the element all together. But it's happening via an Ajax Postback which is updating the DOM invisibly to us in the background. Your coded step 27 is using a cached copy of the DOM which has gone stale due to the postback that just happened in step 36. The cached copy shows the element still present and still visible.
I see you also have a step 38, wait for the error message element to no longer exist. This is the correct action in this specific instance. Step 36 actually causes the element to be removed from the DOM and waiting for it to Not Exist is exactly the right test to make here. You do not need the coded step 37 at all. It is safe to delete it.
Cody