像这样创建一个名为options.yml的文件
在你的程序中,在调用“Watir :: Browser.new”之前执行下面的代码:
您将需要提供文件的完整路径。完成此操作后,“Browser.new”将使用此文件中的选项设置。如果您也使用环境变量,则会覆盖此设置。
目前下面的选项可以配置为IE:
有效的速度设置是“快”,“慢”和“快”
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。