I am using a script on my mac host to launch a selenium node on a local parallels VM.

Something like

"prlctl exec Win7-VM-Name-Here 'C:\path_here\start_node.bat'"

The node starts up nicely and registers itself with the hub. I can run tests fine against this node.

However, when the tests are running, the browser is not visible on the VM, which means that screenshots are useless.

I think it has something to do with allowing a service to interact with the desktop, but I can't figure out which one, or how to proceed.

Any help?

Thank you.

有帮助吗?

解决方案

Unfortunately, this is a common problem with selenium (or any other browser automation software) on Windows. If selenium is running in the background as a service, the browser will not appear when the tests are being run and taking screenshots will just result in a black picture. If you want to be able to watch the tests being run and grab screenshots, the general consensus is to start your script manually from the command line and leave it running.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top