How QTP identifies a dynamic object in a webpage?
you can use descriptive programming for dynamic objects.
But i don't know descriptive programming, i google this question, i got "Regular expression" ia a way to find the dynamic objects..can u give me an example of situation and code...
if you use static object from repository u'll have code like this:
Browser("Browser").Page("Page").WebEdit("Username" ).Set "TEST"
in case if you want to find object that is not in OR:
Browser("index:=0").Page("index:=0").WebEdit("clas s:=field","name:=username").Set "Test"
line above doesn't use OR at all.
you may also use Description Object to find child objects of element by description.
see QTP help for more detailes
Nobody is Perfect... i'm Nobody...
Also check out how ChildObjects are used in QTP.
A n i s h [My QTP Blog]
QTP identifies dynamic objects the same way using the Test Object model. Though as a automation tester you need to use Regular Expressions to make the most of qtp features.
U can browse through qtp help for both DP and RegExp, but DP would be more to do with a programmers approach.
Also check for SetToObjects, if you are using OR.
Winds of Change