• Register
Win an IPAD!!! Checkout this page!
x

Using descriptive programming, I am not able to set a value in WinObject

–1 vote

Hi,

I am using dynamic DP for flight application(provided in QTP).

I want to enter a Date of fight, but not able to.

I have used below lines...

 

Set win = Description.Create
win("Class Name").value = "Window"
win("text").value = "Flight Reservation"
 
 
Set oDof = Description.Create
oDof("Class Name").value = "WinObject"
oDof("attached text").value = "Date of Flight:"
 
Window(win).WinObject(oDof).Set ""  --> here Set is not supporting..
 
Please clarify.. or we cant use dynamic DP for this??
asked Jul 3, 2012 by anonymous  
    

1 Answer

0 votes
I think you are forgetting a Dialog object.

Here is what I suggest ... record the same script without descriptive programming and compare with the above script
answered Jul 5, 2012 by kriru (641 points)   6 10 15
...