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:
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