Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Checking 'Error' on web page
#3
Solved: 11 Years, 4 Months ago
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,

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.
Reply


Messages In This Thread
Checking 'Error' on web page - by laura - 08-14-2009, 09:20 PM
RE: Checking 'Error' on web page - by Saket - 08-15-2009, 12:59 PM
RE: Checking 'Error' on web page - by basanth27 - 08-17-2009, 12:21 PM
RE: Checking 'Error' on web page - by supputuri - 08-17-2009, 12:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to identify an error page occurring in server in between the qtp run. aswini 1 1,793 05-04-2017, 03:52 PM
Last Post: Ankur
  click each web link in a page using Index or other method in QTP smeijer 13 24,715 04-29-2017, 04:53 PM
Last Post: kowshik
  VB Script to count number of links in a web page. Suma Parimal 4 25,265 07-01-2015, 12:59 PM
Last Post: govind
  spell checking of web objects kriday 3 3,985 07-05-2013, 01:37 PM
Last Post: Staff
  Cannot find the "[ WebButton ]" object's parent "[ Page ]" (class Page) sumitparolkar@gmail.com 4 5,089 05-03-2013, 11:53 PM
Last Post: agarwl.anurag

Forum Jump:


Users browsing this thread: 2 Guest(s)