Why selenium is run in headless mode if a slave connected via SSH?

妖精的绣舞 提交于 2019-12-11 07:34:05

问题


I use Jenkins to run tests and connect a slave to it.

Before I connected the slave using Java application and when I started build the tests were run visibly - I saw browser windows opening on the slave.

Now I connect the same slave but using SSH and when I start build the tests are run but they run in headless mode so I don't see anything going on the slave (only in processes).

I want to see the process of tests execution as I saw it when my slave was connected using Java.

I use ChromeDriver to run tets.

Any ideas and explanations why this happened when I changed the way of connection?


回答1:


When slave connected with SSH, browser being launched by Jenkins user (or local system on windows), so you can't see it because you logged in with another account.

When you start the slave with Java Web Start it uses your account so you can see what's happening.



来源:https://stackoverflow.com/questions/35938245/why-selenium-is-run-in-headless-mode-if-a-slave-connected-via-ssh

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!