0

I have a Selenium Grid configured with its hub and nodes(VMs) started automatically as Windows services. Sometimes I would like to visually inspect how a test runs within a browser on a specific node but nothing actually appears on the screen. After some research the reason seem to be that Windows services run in Session 0 which is a special session where Windows services run in isolation.

My question is whether there any way to start Windows service outside Session 0 so I will be able to see the actual test?

P.S. I am using Windows 7 on all machines.

Eugene S
  • 6,709
  • 8
  • 57
  • 91
  • what windows version are you using for your nodes? – Moe Ghafari Apr 05 '17 at 02:31
  • @MoeGhafari Added to the question – Eugene S Apr 05 '17 at 02:42
  • 1
    Windows Services start in session 0 automatically since Vista (well... since session 0 is not anymore assigned to the first user to get connected). There is no way, to my knowledge, for launching them out of session 0 except, obviously by using impersonation. I don't know anything about Selenium but it's probably something you can do, right ? – Kianii Oct 11 '18 at 16:28

1 Answers1

0

Session 0 is the problem when you want to run your selenium grid using task-scheduler and services.

I handle this by first creating .bat file for hub,node and then running that .bat using .vbs in background.

.Vbs will help you run the setup in background in same user session but running the .vbs in startup is challenge.

Batch script.

hub.bat

java -jar selenium-server-standalone-3.14.0.jar -role hub

hub.vbs

createobject("WScript.Shell").run "hub.bat",false

Create same setup .vbs and batch for your nodes.

for Session-0 Insight refer my ans

Akshay barahate
  • 649
  • 8
  • 23