Waitproperty is the synchronized point, used to pause the script until the required object achives the value you specify.
You should not use this in IF..Then.
use it like -
You should not use this in IF..Then.
use it like -
Code:
Window("Flight Reservation").WinButton("Button").WaitProperty "enabled","true"
Window("Flight Reservation").WinButton("Button").Click
