I believe you have to specify a button to click and dismiss the error message. This is easy if you know when the error message is thrown up.
"On Error Resume Next" will not help here. That is only to instruct QTP to ignore the step in which the error occurred and move on to the next step. So, even if QTP tries to proceed beyond this step, the browser will not respond, since there is an open error message.
Of course, I am assuming that the error message is a popup.
I used "on error resume next" to ignore the current line and move on. Thought it didn't work but...it actually worked. It doesn't block script run after skipping the line but....want to figure out a way to ok that message.
Try using the recovery scenario manager to OK the popup.
Although, if the message is "inherent and consistent", as you say, then it would be better to programmatically OK it or even just record the desired action and make it a part of the script.
If it is modal window (IE Error Dialog) - nothing helps, because QTP will not response until this Modal Window will be closed by another thread.
There is more detailed disscussion about IE Modal Window on this forum.
Search by appropreate key words or by my name (or jbotash).
Example of clicking on OK button in not Modal IE Browser standard Dialog Window. (not IE PopUp)
If Browser("xxx").Dialog("Nativeclass:=#32770").Exist (1)Then
Browser("Home Page").Dialog("Nativeclass:=#32770").WinButton("na tiveclass:=Button", "text:=OK").Click
Note: button Text might be with ampressand.
Like that: "text:=&OK"
So, pay attention to it.