Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品与服务 | Email

4.4. Config file

Create a file like this, called options.yml

cat options.yml
browser: ie

In your program, execute the following code before calling "Watir::Browser.new":

Watir.options_file = '~/options.yml'

You will need to provide the full path to your file. Once you have done this, "Browser.new" will use the option settings from this file. If you also use an environment variable, it will override this setting.

Currently the following options are configurable for IE:

speed: fast
visible: true

Valid speed settings are "fast", "slow" and "zippy"

comments powered by Disqus