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

Post New Answer

More QTP Interview Questions

How are actions and functions different in QTP?

0 Answers  


How do we run a test from the 3rd row of the datatable in QTP? Leaving the first two rows we need to test AUT from 3rd row to n'th row.

3 Answers   Virtusa,


how do you parameterize search button from the website? the page is a single winobject and i have made a virtual object button of search button but search box can't be converted into a winedit and if we try to convert it into winedit the value we enter in a searchbox appears as numbers in the script so we arent able to parameterize.help!!!

0 Answers   TCS,


what testing activities u may want to automate?

2 Answers  


How to capture screen shots when an error occurs?

5 Answers   EDS,






What is an Custom Object in QTP ?

1 Answers  


in how many ways we can write the user defined functions one way i know that i.e storing it in .vbs another way i does not know my friend said that .qtf or something but start with q letter can any buddy knows about this

3 Answers   DigiTech, Infotech,


Name the properties you would use for identifying a browser and page when using descriptive programming?

0 Answers  


What is synchronization? What are the ways you can synchronize?

0 Answers  


How to use output values in qtp ?

0 Answers  


Explain in brief about the QTP Automation Object Model.

1 Answers  


HI. AnyBody can explain Automation Testing Framework...Generally wht do we Intiate before going to start Automation testing process... Anybody can explain.......Thanks in advacne...

1 Answers   HCL,


Categories