5

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?


4

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 ...


2

Okay after 2 days I got it working. My working snapshot is as follows: Raspberry Pi 3B Rasbian version April 2017 (Jessie) Selenium 3.4 for Java (Download) Firefox ESR 45 Geckodriver v0.15.0 for arm7hf (Download) Chromium 56 Chromedriver v2.21 for armv7l (Download) The build for the chromedriver is unofficial, they do not provide armv7l builds.


2

You'll need to compile ChromeDriver for the arm6 architecture. Details can be found on ChromeDriver's Internals site. You can also follow a similar guide "Building Chromium OS for Raspberry Pi (ARMv6)"


2

First, the command with the quotes can't work: "/usr/bin/python2.7 /home/pi/Desktop/script.py" It might work without the quotes /usr/bin/python2.7 /home/pi/Desktop/script.py It depends on the X Server. It is likely that you will also need to set XAUTHORITY. You can test this from the command line: env -i DISPLAY=:0.0 /usr/bin/python2.7 /home/pi/Desktop/...


1

I've got Selenium and Chromium/chromedriver working on my RaspPi 3 Model B Rev 1.2 running Buster. Here's how I installed everything and below is code that works for me. I started with update and dist-upgrade: sudo apt-get upgrade sudo apt-get distgrade Install Selenium (if you haven't already): sudo pip install selenium Install chromedriver (these ...


1

It's depends on your pi version processor for using geckodriver, which Pi version are you using, currently geckodrive are only prebuild for ARM7 (pi3B) , if you would like to run it on Zero or older pi you need to download the geckodriver code and made your own build for the ARM versions you need!


1

I solved this problem by using PhantomJS. Install phantomjs package, then you can use: browser = webdriver.PhantomJS()


1

Since resources on this topic are pretty scarce I decided to list what I did to my Pi for anyone that may be lost, as I once was. Here's what I did: Type these commands into the command prompt: sudo apt-get update sudo pip install pyvirtualdisplay (This is for running the Pi headless. I don't think it's required, but recommended for future projects) ...


1

So...i've disabled ipv6. For that, i made changes in the files /etc/modprobe.d/ipv6.conf and /etc/hosts. They looks as follow: /etc/modprobe.d/ipv6.conf # Don't load ipv6 by default alias net-pf-10 off alias ipv6 off /etc/hosts 127.0.0.1 localhost #::1 localhost ip6-localhost ip6-loopback #fe00::0 ip6-localnet #ff00::0 ...


Only top voted, non community-wiki answers of a minimum length are eligible