Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to set up the Raspberry Pi as a client that exclusively runs FireFox as a client in a Selenium grid.

Has anyone tried and got this to work?

Are there any tips or pitfalls that I will need to be aware of?

share|improve this question

I got Raspberry and Selenium working using

Python, Selenium Firefox driver, and Iceweasel

so if you sudo apt-get install iceweasel, then you have a firefox-based browser that will work with the Selenium firefox driver.

Would this help you?

share|improve this answer

You either need to have enable X or better you can run Selenium webdriver on Raspberry Pi in headless mode with xvfb. For this you need the following:

Install required APT packages:

sudo apt-get update
sudo apt-get install iceweasel
sudo apt-get install xvfb

Install required pip packages:

sudo pip install selenium
sudo pip install PyVirtualDisplay
sudo pip install xvfbwrapper

Then start with the following minimal Python:

from pyvirtualdisplay import Display
from selenium import webdriver

display = Display(visible=0, size=(1024, 768))

driver = webdriver.Firefox()

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.