I have my selenium automation script running in chrome and it is running through Jenkins. I have two machines in Jenkins, one master, and one slave, both of them are Windows 7.

While running in master, the automation script is working fine and I can see the script opening a chrome browser in the master remote machine, but while it is running in Slave, I don't see any chrome opening in the slave machine. Looks like it is automatically opening a headless browser and running the script in the background.

Is there any way to turn off that automatic headless run and allow slave to actually open the chrome browser?

Note: I have connected to slave via jnlp (Java method).


I think you are running the agent as a service. Services cannot access the main desktop UI, in some services you can set "Allow service to interact with desktop".

For debugging purposes I would manually start the agent instead of running it as a service.

For more details read: https://stackoverflow.com/questions/5063731/is-there-any-way-to-start-a-gui-application-from-a-windows-service-on-windows-7

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.