(12-21-2011, 05:54 PM)Sathiya Wrote: hi Dude,As i have indicated earlier, the setting changes are not saved once you close/exit qtp.You can use "timer" trick to find no. of seconds a page is taking to load.
thanks for the valuable information.
In our application usually we use the following comment for waittime
Wait(10)
from your trick i use the following code
sVal=Setting.(“DefaultLoadTime”)
but the sVal was always "20"
actually i want to retrive the time taken for page loading(during various actions)
please help me in this regard.
thanks in advance
Assume your page has an image which is rendered after page is completely loaded.
Dim startTimer,endTimer
startTimer=Timer
while NOT B().P().Image().exist(1)
wend
endTimer=Timer
msgbox "total time taken in seconds:"& endTimer-startTimer