|
当程序运行到红色语句时提示: operation is not appropriate for this wibget class , 那么不用这个命令还有其他的命令可以实现该功能吗? Thank you !
set_window ("Flight Reservation");
edit_set_insert_pos ("Date of Flight:(static)", 0, 0);
type ("120106");
#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 ("FLIGHT", value);
if (value != ON)
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"); |
|