Micro Focus QTP (UFT) Forums
open new window - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: open new window (/Thread-open-new-window)



open new window - sia sharma - 07-19-2012

This is my script ....
it gives pass result but Browser("dft").Page("xyz") page does not open

Code:
url_Value=Browser("abc").Page("qtp").Link("Movies").GetRoProperty("href")
if len(url_Value)>0 then
Browser("abc").Page("qtp").Link("Movies").Click
wait(2)
If Browser("dft").Page("xyz").Exist Then
Reporter.ReportEvent micPass,"Pass","valid link"
else
Reporter.ReportEvent micFail,"Fail","invalid link"
End If


Thanks
sia


RE: open new window - sshukla12 - 07-20-2012

Hi,

Use syncronization, it will hault ur script untill the page is displayed.

Regards,
Sankalp