Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | Github | OSChina 博客 | 雲社區 | 雲棲社區 | Facebook | Linkedin | 知乎專欄 | 視頻教程 | About

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"