10-04-2008, 03:05 PM
Hi
Below is the Code I have recorded.In the 6th Step ((WinEdit("Edit").Set "3"), I change the value 3 to 7 and Run it. The test will obviously fail as in the 12th step I insert a check point for "Send Signature with order" which will look for the Order no.3 in the title bar. I was asked to use a regular expression to handle the order no. in the title bar of the fax screen. I right clicked on the title bar in the active screen and tried to use the above regular expressions. But they are not working. I would like to know the exact syntax for the regular expression in the title bar
Below is the Code I have recorded.In the 6th Step ((WinEdit("Edit").Set "3"), I change the value 3 to 7 and Run it. The test will obviously fail as in the 12th step I insert a check point for "Send Signature with order" which will look for the Order no.3 in the title bar. I was asked to use a regular expression to handle the order no. in the title bar of the fax screen. I right clicked on the title bar in the active screen and tried to use the above regular expressions. But they are not working. I would like to know the exact syntax for the regular expression in the title bar
Code:
Window("Flight Reservation").Activate
Window("Flight Reservation").Activate
Window("Flight Reservation").WinMenu("Menu").Select "File;Open Order..."
Window("Flight Reservation").Dialog("Open Order").Activate
Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Order No.").Set "ON"
Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Set "3"
Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click
Window("Flight Reservation").Activate
Window("Flight Reservation").Activate
Window("Flight Reservation").WinMenu("Menu").Select "File;Fax Order..."
Window("Flight Reservation").Dialog("Fax Order No. 3").Activate
Window("Flight Reservation").Dialog("Fax Order No. 3").WinCheckBox("Send Signature with order").Check CheckPoint("Send Signature with order")
Window("Flight Reservation").Dialog("Fax Order No. 3").WinButton("Cancel").Click
Window("Flight Reservation").WinButton("Button").Click