(Watir webdriver) How to move Browser to another screen when using multiple display in OSX 10.9 (Watir webdriver) How to move Browser to another screen when using multiple display in OSX 10.9 selenium selenium

(Watir webdriver) How to move Browser to another screen when using multiple display in OSX 10.9


Ha, I was about to say this probably isn't possible before I tried this:

browser.window.move_to(-1200,0)

My second monitor is oriented to the left of my main screen. It worked. Nice question.

You'll need to fool around with it to get it right but watir appears to be able to use the entire canvas of monitors. If your monitor was above your main screen for example you'd move it there using something like

browser.window.move_to(0,-1000)