Is there anything like xvfb or xnest for Windows? [closed] Is there anything like xvfb or xnest for Windows? [closed] windows windows

Is there anything like xvfb or xnest for Windows? [closed]


You can use "Desktops" application from SysInternals package. Run UI tests on one desktop and work on another.


I found a freeware program called "RunProcess.exe" written by Frank P. Westlake that can run a process bound to the desktop of a non-interactive (e.g. off-screen) WindowStation. However, there is no source.

Therefore I've implemented my own version (simpler than Frank Westlake's) with Java and JNA. It's in the Window Licker repository in the tools module. The class is called com.objogate.wl.win32.RunOnDesktop. At some point I may port it to C and make it a normal command-line .exe, or maybe turn it into an Ant task for running tests off-screen.


I just tried the multiple desktop method on my Windows 10 machine. I'm running Selenium Javascript tests. I started the tests on another desktop and waited for it to open the browser, then switched back to my main desktop. But at the same point where the Chrome browser would become the active window, now it actually forced me back to that desktop :-(

I think I'll try RunProcess.exe, or Nat's solution.