I need to obtain the parent of an object programatically, so
if I have:
winButton("aButton")
I need to obtain the parent part:
window("Window1").Dialog("Dialog1")
so I can programatically create a string of the full name of
the object to call it with an execute statement in QTP
I would like to use something like:
part[1] = "window(""Window1"")"
part[2] = "dialog(""Dialog1"")"
so I can do:
exeLine = part[1]&"."&part[2]&"."&"winButton(""aButton"")"
Execute exeLine
Apart from keeping a record of the window/dialog hierarchy
is there a parent or path function/ command
Thanks
Adrian
No Answer is Posted For this Question
Be the First to Post Answer
How does qtp identify gui object?
can we call runaction in the funcion
Suppose I want to use Index value of "WinEdit" in my script .But it is showing None in "Ordinal identifier" value of Testobject Details in the Object Repository.How to enable Ordinal Identifiers to capture the Index value of that particular WinEdit. I have selected "index" and clicked "OK" from Tools-> Object Identification Again I added same WinEdit to the Object repository But I did not get Index value..Please any one help me.How to enable Ordinal indentifiers
what is the use of automation objective model?where is used? plz tell me
when i try to recognise a winmenu item it does not allow me to do that but recognises it as window..i am using qtp 9.2 could someone help with this
what is the extension for QTP files?
What's QuickTest Window?
How to use Environment parameterization? Explain with an example.
what is risks of testing a project?
How To write script in QTP For Field Validation Example: password Field is accepting A range 8-20 characters only.How to write script?
How to test the login page in different ways in automation testing and i need code?
what is a active x control?can any one brief me about active x controls