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

What is descriptive programming?

15 Answers   Wipro,


how to associate object repository during runtime in qtp

1 Answers   Deloitte,


who is the best faculty in HYD? Nageshwar rao or GC reddy?

3 Answers  


A webPage has a ComboBox with 10 values in it. Write a script to select 4 vales from it using CTRL key

3 Answers   Virtusa,


How can I replace all the text from the QTP script with some other text. Is there any replace all function in QTP Any one can help me

5 Answers   Livetek, Virtusa,


How to sendKeys in QTP? Diff b/w sendkeys and device replay? Diff b/w function and Sub? Diff b/w Array and List Different Types of running Keys other than Fast, slow,Normal mode Regular expression for http://newtours.demoaut.com Difference between \w and \W How to generate script button Recording Types Different Types of Actions? Using DP performance degrades, If Yes why? How to close all the opened browsers? Diff b/w SystemUtil.Run and invoke application? If qtp not recognized the combo box How to select values from drop down?

0 Answers  


1. What is extense of Result file in QTP?

7 Answers  


When should u feel that u can stop testing now? The following are few of the common Test Stop criteria:

2 Answers  


Hi, I Would Like to Know which is the Best QTP Certification Training Institute in Hyd? Thanks in Advance kishan

1 Answers  


Hi, Any one have the crack for QTP 10.0,if so could you please send it to phanijuly10@gmail.com

2 Answers  


Can we create test script with out Step Generator?

4 Answers  


What are the Levels of Automation in QTP

2 Answers  


Categories