Micro Focus QTP (UFT) Forums
How to identify the object when it is dynamically changing behavior - 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 Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: How to identify the object when it is dynamically changing behavior (/Thread-How-to-identify-the-object-when-it-is-dynamically-changing-behavior)

Pages: 1 2


RE: How to identify the object when it is dynamically changing behavior - malleshjm - 01-29-2010

if ur not using descriptive , u can add the objects and check using browser().page().link(Status).Exist or WebElement(Status).Exist.

if ur using descriptive, browser().page().link("html tag:=A","text:=Status").Exist or browser().page().link("html tag:=WebElement","text:=Status").Exist

u can also use a flag inside if condition and use it to check whether link/webelement is present.
Correct me if am wrong. i am new to QTP.

Regards,
Mallesh


RE: How to identify the object when it is dynamically changing behavior - shivu.hanu - 01-05-2012

Code:
set desc=description.create
desc("micclass").value="WebLink"

set obj=browser().page().webtable().childobjects(desc)

for i=0 to obj.count-1
linkname=obj(i).getroproperty("name")
msgbox linkname
next



RE: How to identify the object when it is dynamically changing behavior - vinod123 - 01-05-2012

Use GetRoProperty of the object and assigned it to an variable and use the variable in the place of the set value in the case of webedit