Prepare for your Next Interview
This is a discussion on child objects within the QTP forums, part of the Software Testing category; hi all ,i would like to know more about child objects,am new for the QTP where it can be used....
|
|||
|
Re: child objects
Any of the object controls like a button, checkbox, radiobutton, combobox, frame etc of the application that can be referred only from its parent object are called child objects.
Eg. A button may have been placed directly on a window. So, the window will be a parent object and the button will be a child object. Eg. A group of radiobuttons may have been placed under a frame and that frame is placed on a window. So, the window will be a parent object of the frame and the frame will be the parent object of the radiobuttons. Radiobuttons will be the child objects.
__________________
Lack of WILL POWER has caused more failure than lack of INTELLIGENCE or ABILITY. -sutnarcha- |
| The Following User Says Thank You to sutnarcha For This Useful Post: | ||
|
|||
|
Re: child objects
hi sutnarcha your explanation is very clear ,am having small dought about this concern ,all the objects appeared in the app is created,some times why we need to create child objects for already created objects,can u answer me please?
|
|
|||
|
Re: child objects
Hay Rajasekhar... I don't understand what u r trying to ask here... what do u mean 'why we need to create child objects for already created objects'?
__________________
Lack of WILL POWER has caused more failure than lack of INTELLIGENCE or ABILITY. -sutnarcha- |
|
|||
|
Re: child objects
Quote:
better u go through QTP profession Help... |
|
|||
|
Quote:
e.g check that a webtable cell has value 3. Set OD = Description.Create() oD("micclass").value = "WebElement" oD("html id").value = "oClai" Set ODObject = Browser(b).Page(p).childObjects(OD) While OD.getroproperty("innertext") <> "4" if OD.getroproperty("innertext") = "3" then ''Logic on the elment end loop end if Wend |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can we insert a child row in Datagridview in C# | mnaren | C# | 0 | 05-21-2008 02:27 AM |
| Child object property keep changing | newhere | QTP | 4 | 04-16-2008 10:32 AM |
| Parent Child Table Relationship | srivastava.sujata | Oracle | 4 | 04-03-2008 09:32 AM |
| Method to excute child objects script | ypraveen_77 | QTP | 2 | 01-06-2008 01:54 AM |
| Selected project does not have any child BC | mail2diptesh | Seibel | 1 | 07-24-2007 02:12 AM |