Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with wait property.
#1
Solved: 10 Years, 9 Months, 2 Weeks ago
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

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


Messages In This Thread
Problem with wait property. - by tester_rahul - 03-26-2010, 09:56 PM
RE: Problem with wait property. - by Saket - 03-27-2010, 02:02 PM
RE: Problem with wait property. - by tester_rahul - 03-29-2010, 11:36 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  help with wait property function kp_usa 3 3,992 12-20-2012, 10:49 PM
Last Post: kp_usa
  wait QAVA 1 2,790 11-13-2012, 07:29 PM
Last Post: imzeeshan
  How to control WAIT time with STATIC variable? chong67 3 3,837 06-22-2012, 10:38 AM
Last Post: sshukla12
Exclamation Alternative for Wait Statement Veekay 2 8,279 03-20-2012, 07:13 PM
Last Post: swathi
  Verifying the value exists and if not, wait up to 5min HeZma 3 3,867 02-25-2012, 12:21 PM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 1 Guest(s)