Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run Selenium Scripts in webservers?

I have written a few Selenium [Python] webdriver scripts, and while they are running fine on my system, they are not running on my website's server. It is showing errors with Firefox. Firefox is installed on the server. The webserver is Ubuntu. What do I have to do to run those scripts? Please help, I am a newbie.

like image 736
Saheb Avatar asked Feb 04 '14 13:02

Saheb


1 Answers

Selenium requires a running browser and browsers need some kind of X server in order to run. 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.

In Wikipedia you could find very nice examples.

This is a nice example too.

like image 118
Victor Sigler Avatar answered Oct 06 '22 02:10

Victor Sigler