Micro Focus QTP (UFT) Forums
QTP fails to recognize object at runtime. - 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: QTP fails to recognize object at runtime. (/Thread-QTP-fails-to-recognize-object-at-runtime)



QTP fails to recognize object at runtime. - shash.saxena - 01-31-2008

Hi,

The problem is that i have one table that contains a column. Each row of this column contais "Link" (HyperLink) object. The statement mentioned below executed in a for loop.

Code:
For j=1 to 2
"Browser("Bajaj Learning Resource").Page("Bajaj Learning Resource").Frame("frmContent_6").Link("Content Assessment1").Click"
Next

I just want that in each cycle of this loop QTP recognize different "Link" (HyperLink) for different row of the column.

If i do somthing like this, the name of "Link" changed in each cycle and this name exists in the table. than QTP gives an error massege that this object is not found in object repositry.

My question is that "How to create objects at run time"

Ashish


RE: QTP fails to recognize object at runtime. - SamQA - 02-04-2008

HI Ashish

As what I understand that ur link name is changing like Assessment1 ,Assesment2, then u have to use regular exp.