Question: I need to run several instances of a Ruby script that's using the Watir gem, and they all need to be able to run in IE fullscreen mode. 

CLARIFICATION: They need to be able to open IE in a mode that *allows* **multiple** instances of IE to operate in full screen mode, not necessarily trigger the fullscreen. Opening up IE normally allows only a single instance to open fullscreen (not maximized).

I can make this happen manually, by specifying the '-f' parameter on iexplore.exe. Is there a way to make this happen when creating the browser object from Watir? 

If I can't make it happen when this as some sort of runtime parameter, I'd be ok with changing the base Watir call that opens IE - if I could and could find it.

```
require 'watir' 
browser = Watir::Browser.new <--- adding '-f' somehow here?

```

Answer: 
Try this, it worked for me on IE 9.

```
browser = Watir::Browser.new
browser.goto 'http://www.google.com'
browser.getIE.parent.FullScreen = true 

```

Edit: I found a [registry setting](http://smallvoid.com/article/ie-full-screen.html) that may do what you are trying.

```
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
Fullscreen = "yes" (Default = "no")

```
Feels hackish, but I figured out I *can* do something like (but I'd love a better way):

```
require 'watir'
IO.popen('C:\\Program Files\\Internet Explorer\\iexplore.exe -f "newwindow"')
browser = Watir::IE.attach(:title,/newwindow/)

```