博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2009年4月27日

摘要: 使用watir的close_all方法,有时会关闭不掉IE,最好的办法就是直接终止IE进程,可以写一个关闭ie的方法 require 'win32ole' # Returns the number of windows processes running with the specified name. def close_ie mgmt = WIN32OLE.conn... 阅读全文

posted @ 2009-04-27 22:12 Watir 阅读(1262) 评论(0) 推荐(0) 编辑