#Type in a value in the Fly From: box
list_select_item ("Fly From:", "Portland");
#Type in a value in the Fly To: box
list_select_item ("Fly To:", "Denver");
#Check that the Flights button is enabled
button_get_state ("Insert Order", value);
if (value = 0)
report_msg ("Flights button was not enabled. Check that values for Fly From and Fly To are valid");
else
report_msg ("The Flights button was successfully enabled");
#Type in a value in the Fly From: box
list_select_item ("Fly From:", "Portland");
#Type in a value in the Fly To: box
list_select_item ("Fly To:", "Denver");
#Check that the Flights button is enabled
obj_mouse_click ("FLIGHT", 38, 30, LEFT);
set_window("Flights Table");
list_select_item("Flight","#3");
button_press("OK");
set_window("Flight Reservation");
obj_type("Name:","lihai");
wait(2);
button_get_state ("Insert Order", value);
if (value == 0)
{
report_msg ("Flights button was not enabled. Check that values for Fly From and Fly To are valid");
button_press("Insert Order");
}
else
report_msg ("The Flights button was successfully enabled");
#Type in a value in the Fly From: box
list_select_item ("Fly From:", "Portland");
#Type in a value in the Fly To: box
list_select_item ("Fly To:", "Denver");
#Check that the Flights button is enabled
button_get_state ("Insert Order", value);
if (value ==E_OK)
report_msg ("The Flights button was successfully enabled");
else
report_msg ("Flights button was not enabled. Check that values for Fly From and Fly To are valid");