Results 1 to 2 of 2

Thread: Object does not exist at page load

  1. #1
    Geek_Guest
    Guest

    Object does not exist at page load

    I've got an issue recognizing a dynamically created input box and change it's value from QTP at run time. This object is created only when I double click on a table cell, so it doesn't exist at page load. Any guidelines, ideas?, I've try anything I count find without success :-(
    Thanks

    Question asked by visitor Francois


  2. #2
    Expert Member
    Join Date
    Oct 2007
    Answers
    375

    Smile Re: Object does not exist at page load

    Hi Francois,

    Try Descriptive Programming. It would enable you to work with Objects that are not present in your Object repository. In short you would be able to recognize objects that appear at runtime.

    Firstly we would have to check whether the Object has appeared on the double click action or not. I guess the following code could help you -

    Dim oDesc
    Dim oChildren
    oDesc = Description.Create
    oDesc("micclass").Value = "WinEdit"
    Set oChildren = Browser().Page().Frame().ChildObjects(oDesc)

    msgbox oChildren.count

    This would get the count of the chiild objects in the window. Incase the number increases, we are assured that EditBox appears.

    Using Descriptive programming like -

    Dim obj_Desc
    Set obj_Desc = Description.Create, we can identify the following
    obj_Desc(“html tag”).value
    obj_Desc(“name”).value

    using getRO Property we can identify the Runtime properties of this InputBox as well.

    Cheers....


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