Micro Focus QTP (UFT) Forums
verify that parent properties match object currently displayed in your application. - 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: verify that parent properties match object currently displayed in your application. (/Thread-verify-that-parent-properties-match-object-currently-displayed-in-your-application)



verify that parent properties match object currently displayed in your application. - sona - 02-21-2016

when i am running following code (for ex):
     

systemutil.Run("http://relevantcodes.com/category/qtp/")

Browser("title :=QTP-UFT","index :=0").Page("title:=QTP-UFT","index:=2").Link("name:=QTP-UFT", "innertext:=QTP-UFT").Click


i am getting an error:
Cannot find the "[ Link ]" object's parent "[ Browser ]" (class Browser).
Verify that parent properties match an object currently displayed in your application.

Line (4): "Browser("title :=QTP-UFT","index :=0").Page("title:=QTP-UFT","index:=2").Link("name:=QTP-UFT", "innertext:=QTP-UFT").Click". 

please help me with this issue