Hi! Using Descriptive Programming How do we get Parent
object for an object by writing script(DP). Say, i want to
get a parent object
for a "Link" in a web page by writing script in Descriptive
Programming.



Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP)...

Answer / Anukrati Srivastava

In Descriptive Programming (DP), you can use the GetParent method to get the parent object of a specified object. For example, if you have a link object on a webpage and you want to find its parent div, you could write something like this: `Browser("browser_name").Page("webpage_name").WebElement("link_object_name").GetParent().Description`. This will return the description of the parent object.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

before launching qtp, we need to close all the open browsers u dont know what are all the browsers either it might be ie,mozilla etc and u dont know how many brosers are open.... u need to close all these before launching qtp.. can anyone plz temme d solution...

3 Answers   Keane India Ltd,


Suppose you are using shared objects repository in your test and you want to split your present action? At that time shared object repository is single or it’s also splits?

1 Answers  


what ar the challenges do we face while testing webbased applications using the automation tool qtp or any?

4 Answers   TCS,


How to add Dynamic Objects to Object repository?

5 Answers  


How can I use Call dlls in QTP ?

1 Answers  


anyone can explain Diff B/w Actions and Functions

2 Answers  


How to handle run time errors?

9 Answers  


How to apporach while starting the automation testing?

3 Answers   Patni,


Which version of QTP is using by companies nowadays?

4 Answers  


1.what is the extension of action template? 2.what are the strengths and weaknesses of Keyword driven framework? 3.how qtp identify runtime objects?

1 Answers   Satyam,


Can we create user defined functions in qtp?

1 Answers  


How To Export The Screen Shoots Along With The Test Reports In QTP Version 10? Thanks In Advance SenthilKumar

1 Answers  


Categories