Hi Saket,
I tried your suggestion, but there is still an issue.
The code is now:
What is happening is:
Maps link is clicked..qtp quickly runs through the next steps, even the last step and then, i see that it stops at Step6 again which is
It stops here cos it doesnt find "Link maps", obviously it wont cos it has already opened it.
Why doesnt it stop at msgbox and just get the output?
I dont get this behavior.
Either you/someone please help me!
I tried your suggestion, but there is still an issue.
The code is now:
Code:
Public Function CheckLoadTime(ByVal LnkName,ByVal BroName,ByVal PagTitle)
Browser("Bro_Google").Page("Pag_Google").Sync
Browser("Bro_Google").Page("Pag_Google").Link("name:="&LnkName).Click
wait(2)
StartTime=MercuryTimers.Timer("Timer1").Start
Browser("name:=" & BroName).Page("title:=" & PagTitle).Sync
StopTime=MercuryTimers.Timer("Timer2").Stop
CheckLoadTime=StopTime-StartTime
End Function
Call CheckLoadTime("Maps","Google Maps","Google Maps")
msgbox CheckLoadTime(LnkName,BroName,PagTitle)
What is happening is:
Maps link is clicked..qtp quickly runs through the next steps, even the last step and then, i see that it stops at Step6 again which is
Code:
Browser("Bro_Google").Page("Pag_Google").Link("name:="&LnkName).Click
Why doesnt it stop at msgbox and just get the output?
I dont get this behavior.
Either you/someone please help me!