Is it possible to run Selenium scripts without having an X server running, too?

邮差的信 提交于 2019-11-30 19:39:31
plaes

Yes, you need to have X server running because Selenium requires a running browser and browsers need some kind of X server in order to run.

Fortunately there are many types of X servers and one of them is Xvfb aka X virtual framebuffer that does all the operations in memory and thus requires no screen.

Wikipedia has also some nice examples.

Also there are lots of questions here on SO for keywords headless, xvfb and selenium. Choose wisely ;)

[Edit]: Here's a nice example.

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