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?
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?
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
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)) display.start() driver = webdriver.Firefox() driver.get('http://raspberrypi.stackexchange.com/') driver.quit() display.stop()