|
WinRunner录制一段简单的Web页面搜索,不知道为什么百度页面能正常回放,而Google页面就不能回放,出现"object is not currectly displayed"的错误。对比一下,觉得非常不解,因为提示“Google Search”这个object没有显示或者找到。为什么百度页面和Google页面会有表现的差异呢。
请教一下大家了,谢谢
# Browser Main Window
win_activate ("Browser Main Window");
set_window ("Browser Main Window", 3);
edit_set ("browser_main_edit_location", "www.baidu.com");
obj_type ("browser_main_edit_location","<kReturn>");
set_window("百度一下,你就知道",5);
edit_set("wd","WinRunner测试");
button_press("百度一下");
# Browser Main Window
set_window ("Browser Main Window", 3);
edit_set ("browser_main_edit_location", "www.google.ca");
obj_type ("browser_main_edit_location","<kReturn>");
# Google
set_window("Google",10);
edit_set("q","WinRunner测试");
button_press("Google Search"); //出错:Object is not currently displayed. |
|