selenium

In a multi-monitor display environment, how do I tell Selenium which display to open a new window in?


Sorry if this has been asked and answered. I did a search but came up empty.


Solution

  • It is very useful for debugging to run tests on a secondary monitor. Unfortunately you cannot specify on which monitor browser should be opened. The options are:

    1. Open browser and drag it to the desired monitor, then close it. Next time it will be opened on that monitor
    2. Use software like Ultramon to control on which monitor to start browser.

    Also you can use a virtual machine that will be run on the second monitor - just drag it there.