Prepare for your Next Interview
This is a discussion on Object does not exist at page load within the QTP forums, part of the Software Testing category; 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 ...
|
|||
|
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 |
| Sponsored Links |
|
|||
|
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.... |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Package oracle.jdbc.driver does not exist | Geek_Guest | Oracle | 3 | 1 Week Ago 08:48 AM |
| how to pass to pageid to the Object Rep so that pull up all the objects in that page | nikki_qa | Testing Frameworks | 0 | 10-22-2007 02:05 PM |
| which is more suitable IN or EXIST in SQL? | rahul.earl | SQL | 5 | 08-06-2007 09:10 AM |
| Winrunner is taking the entire web page as a single page | Sridevi.P | WinRunner | 0 | 06-05-2007 11:26 PM |
| What is the equivalent in QTP to load the shared Object repository in the memory | Geek_Guest | QTP | 1 | 04-19-2007 01:43 PM |