|
这是WR自带的FLIGHT 例子, 我录制了脚本, 但在报告里显示的是"The Flights button was successfully enabled", 实际上 Insert Order 按钮是灰色的,处于不可用状态, 所以 if(value=0) 的判断结果应该是真, 这样else就不应该执行才对, 请问怎么解释呢?
set_window ("Flight Reservation");
obj_type("MSMaskWndClass","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 ("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");
[ 本帖最后由 小李美刀 于 2006-8-24 18:04 编辑 ] |
|