Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using Set in Descriptive Programming
#1
Not Solved
Hi

1)I would like to know what contains in the Obj when I issue the following Statements in QTP.

Code:
Set Obj=Description.create()
Obj("Class name").value="WinButton"

I issue this statements first to count the no.of objects in a window.
How will be the structue of Obj in memory. What it is going to have exactly.

2) I sent this "Obj" into childobjects method like this.

Code:
Set Objcoll=window("Flight Reservation").childobjects(obj)  
Objcnt=objcoll.count

So what will "Objcoll" have now. what information about the childobjects are captured in Objcoll above.


regards
Srinivas Aditya
Reply
#2
Not Solved
Code:
Set Obj=Description.create()
Obj("Class name").value="WinButton"
in the above statement obj contains the information about WinButton
Reply
#3
Not Solved
Objcoll will be a collection of all "WinButton" objects present in window "Flight Reservation".
If you want only a part of these WinButtons, you must describe Obj setting more features
Reply
#4
Not Solved
As stevol said, these objcoll is a collection of WinButton objects. Here're some of the things you can do with it:
Ask how many are these: objcoll.count
Access a the first of these objects: objcoll.Item(0)
Run through all of them, and highlight them one at a time (of course you can also input them, click them, or anything else):

Code:
For i = 0 to objcoll.count -1
   objcoll.item(i).highlight
Next
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Dynamic descriptive Programming issue in Terminal Emulator cprasad 1 1,964 04-25-2019, 08:17 PM
Last Post: Ankur
  UFT Tool support with Descriptive programming laks 1 1,807 07-05-2018, 05:31 PM
Last Post: Ankur
  UFT Descriptive Programming objects not identified in a secure & private intranet env bugfinder2 1 1,844 06-07-2017, 01:41 PM
Last Post: Ankur
  UFT descriptive programming Browser("creationtime:=-1") not always working SOUMYADEEP 0 3,096 01-20-2017, 01:53 AM
Last Post: SOUMYADEEP
  Inserting variable values into Descriptive Programming Functions eske99 2 3,528 12-18-2015, 01:47 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)