K
K
krll-k2014-08-18 16:07:49
linux
krll-k, 2014-08-18 16:07:49

How to start selenium server without X windows system?

How to start selenium server without X windows system?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Marat Amerov, 2014-08-18
@amerov

try phantomjs

Z
zorruch, 2014-08-18
@zorruch

[email protected]:~# /etc/init.d/selenium-server start
[ ok ] Starting Selenium Remote Control Server: selenium-server.
[email protected]:~#

K
krll-k, 2014-08-18
@krll-k

$ sudo apt-get install xvfb python-pip
$ pip install selenium
$Xvfb :1 -screen 0 1024x768x24 2>&1 >/dev/null &
$DISPLAY=:1 java -jar selenium-server-standalone-2.0b3.jar
05 :08:31.227 INFO - Java: Sun Microsystems Inc. 19.0-b09
05:08:31.229 INFO - OS: Linux 2.6.32-305-ec2 i386
05:08:31.233 INFO - v2.0 [b3], with Core v2.0 [b3]
05:08:32.121 INFO - RemoteWebDriver instances should connect to: 127.0.0.1:4444/wd/hub
05:08:32.122 INFO - Version Jetty/5.1.x
05:08:32.123 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/ driver]
05:08:32.124 INFO - Started HttpContext[/selenium-server,/selenium-server]
05:08:32.124 INFO - Started HttpContext[/,/]
05:08:32.291 INFO - Started [email protected]
05:08:32.292 INFO - Started HttpContext[/wd,/wd]
05:08:32.295 INFO - Started SocketListener on 0.0.0.0 :4444
05:08:32.295 INFO - Started [email protected]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question