08-17-2009, 12:21 PM
As you mentioned, if you are sure that a "Error" string is displayed whenever webparts dont load then you can simply add that image or webelement or whatever the string is and do this,
Or on a sideline you can check for the browser status message or the page message, Sometimes when the page does not get completely loaded then the browser sends out a status message that "Error on Page".
Let me know if it helps.
Code:
If object().Exist(2) Then
Reporter.reportevent micfail, "Error on Page", "Webpart hasnt loaded"
Else
Reporter.reportevent micpass, "Error on Page", "Webpart has loaded"
End If
Or on a sideline you can check for the browser status message or the page message, Sometimes when the page does not get completely loaded then the browser sends out a status message that "Error on Page".
Let me know if it helps.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.