3

I wnat to run a ruby code with the selenium-webdriver on my raspberry pi. I've installed chromium-browser via apt-get. Ruby and selenium-webdriver are also installed. I've created a symlink for the chromedriver:

ln -s /usr/bin/chromium-browser /usr/bin/chromedriver

When i run my script, i get following:

unable to connect to chromedriver http://127.0.0.1:9515

I've downloaded from the official page the 32bit version of the chromedriver for linux, bit of course doesn't work (Exec format error - /usr/bin/chromedriver).

Is there any way to compile the chromedriver instead to use the binary? Or has someone any idea how to fix the problem?

cupakob
  • 1,057
  • 3
  • 13
  • 17

2 Answers2

3

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)"

emcconville
  • 450
  • 3
  • 11
1

On my question, if it's possible to build only chromedriver from source, i get this link as answer:

http://code.google.com/p/chromedriver/wiki/ContributingCode

The easier solution for me was a swich to firefox. So i've installed iceweasel and in the ruby script i'm using now :firefox instead :chrome.

cupakob
  • 1,057
  • 3
  • 13
  • 17