Geeks Talk

Prepare for your Next Interview




Object does not exist at page load

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 ...


Go Back   Geeks Talk > Software Testing > QTP

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 11-14-2007
Expert Member
 
Join Date: Feb 2007
Posts: 1,279
Thanks: 0
Thanked 168 Times in 139 Posts
Geek_Guest is on a distinguished roadGeek_Guest is on a distinguished road
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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-19-2007
Expert Member
 
Join Date: Oct 2007
Location: Mumbai
Posts: 347
Thanks: 4
Thanked 54 Times in 44 Posts
bizzzzzare is on a distinguished road
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....
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP


Thread Tools
Display Modes


Similar Threads

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


All times are GMT -4. The time now is 02:17 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved