Ruby设置IE不可见

Running Tests With the Browser Not Visible

Run the tests with a -b option if you don't want the browser to be visible. Example:

my_test.rb -b

You can also hide the browser window without using the -b flag. Example:

$HIDE_IE = true
ie = Watir::IE.new()
 
或者Watir:IE有函数ie.visable=true
posted @ 2008-05-08 15:23  slaughter  阅读(296)  评论(0编辑  收藏  举报