03-26-2010, 09:56 PM
HI,
I am using the following code to see the difference between wait and waitporperty, however there seems to be no difference, please help me
I am using the windows application provided by mercury for running this test.
THanks,
RAhul.
I am using the following code to see the difference between wait and waitporperty, however there seems to be no difference, please help me
Code:
Window("Flight Reservation").ActiveX("MaskEdBox").Type "032810"
Window("Flight Reservation").WinComboBox("Fly From:").Select "Frankfurt"
Window("Flight Reservation").WinComboBox("Fly To:").Select "London"
Window("Flight Reservation").WinButton("FLIGHT").Click
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select "12117 FRA 09:48 AM LON 10:31 AM LH $105.00"
Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click
Window("Flight Reservation").WinEdit("Name:").Set "Rahul Test"
Window("Flight Reservation").WinButton("Insert Order").Click
'wait(10)
If Window("Flight Reservation").WinButton("Button").WaitProperty("enabled","true",20000) Then
Window("Flight Reservation").WinButton("Button").Click
End If
I am using the windows application provided by mercury for running this test.
THanks,
RAhul.