Results 1 to 6 of 6

Thread: child objects

  1. #1

    Cool child objects

    hi all ,i would like to know more about child objects,am new for the QTP where it can be used.


  2. #2
    Expert Member
    Join Date
    Nov 2006
    Answers
    518

    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-

  3. #3

    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?


  4. #4
    Expert Member
    Join Date
    Nov 2006
    Answers
    518

    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-

  5. #5
    Junior Member
    Join Date
    Feb 2008
    Answers
    24

    Re: child objects

    Quote Originally Posted by rajasekhar reddy View Post
    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?
    We are not creating any new object.. ChildObjects just assign the child objects to another object...

    better u go through QTP profession Help...


  6. #6
    Expert Member
    Join Date
    Jan 2007
    Answers
    211

    Question Re: child objects

    Quote Originally Posted by rajasekhar reddy View Post
    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?
    ChildObjects are used in real-time projects where we need to filter specific objects using descriptive programming, since there is a collection and we want to fetch the objects at runtime & get the value pertaining to business requirement.

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact