Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP is waiting for the page to load succesfully and then doing actions
#1
Not Solved
Hi,

I have a scenario where in our application once we browser thru few pages one of the page seems to load very slowly in IE (current version is IE8.0 takes atleast 2-3 min) which is a bug and this is not the case in Firefox.
For user it does look like page is loaded succesfully unless you notice specifically in the Status bar as"1 item remaining" as supposed to "Done" .
Is there a way to "Tell" QTP to go forward and do the next action and not to wait until it sees Done on the page?
Any help is appreciated!
Reply
#2
Not Solved
Look for the existance of the object, which can navigate to next action.
Take out the Sync or wait statement for this page
Reply
#3
Not Solved
You can use the Do While loop with If statement for this.
Reply
#4
Not Solved
Here, you can check with "Done" Statement on browser or, Consider any of the object on page like "OK" or "Submit" buttons which is disappeared. Develop a code as it can be go to next step whether the "Done" statement appeared or "Object" disappeared. But, "Done" validation is mandatory... as a good test engineer, consider this first then go with workaround.

Eg:
Code:
Dim Valid
Valid = Object.Exist
If (Valid = True) Then
Do while Not Valid=True
Valid = Object.Exist
Loop
End If
'Once the Valid is False, means that the page is navigated... or

If you find that even the object disappears, the page is not navigated fully,
You can check the Existence of the next page's object (If you have Object's information). I think we have the next page objects too... we can proceed even on this procedure.

any issues let me know.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Load Add-in at execution time driverdash 0 2,062 08-11-2015, 12:35 AM
Last Post: driverdash
  Script for Waiting till a text changes anushreebehura 2 2,166 03-01-2013, 05:32 PM
Last Post: anushreebehura
  Page load is not working as desired Charanpreet 1 2,640 04-14-2011, 10:14 AM
Last Post: manabh
  Load Data from Excel SweetyChowdhury 3 4,068 04-28-2010, 07:38 PM
Last Post: basanth27
  QTP Actions in to vbs function anbarasu 2 3,174 04-05-2010, 11:58 AM
Last Post: anbarasu

Forum Jump:


Users browsing this thread: 1 Guest(s)