I recently installed Python 2.7, Robot Framework and the Selenium Library (I still don\'t know if I succeeded though...) on a Red Hat Server to run some test on a web applic
We can use xvfb to create a headless environment for selenium (for example, to run over SSH).
Start xvfb
with the following options:
$ Xvfb :89 -ac -noreset
(where :89
is the virtual "display" created).
Then, set the DISPLAY
variable to be this virtual display:
$ export DISPLAY=:89
At this point, we can run the selenium server as desired. Examples follow.
Run the server Java archive:
$ java -jar selenium-server.jar
In Python:
from selenium import webdriver
driver = webdriver.Firefox()
...
Here is a simple Robot library just for that purpose.