Hi all, Ive been searching for a solution for some days and I couldnt find any. I apologize in advance if this is a silly question (Im kind of new to linux). Thank everyone who could help me.
First of all, this is my environment:
- OS release: Raspbian GNU/Linux 8 (jessie)
- Firefox (iceweasel) version: 38.8.0esr-1~deb8u1
- Selenium version: Either selenium-server-standalone-2.53.1.jar or selenium-server-standalone-3.0.1.jar
Brief description: Incompatible versions of iceweasel (38.8.0esr-1~deb8u1) and selenium(2.53.1 / 3.0.1) + problems with display
In the past I could run a program (web crawling) using selenium 2.53.1 and iceweasel (dont know the version) so I made another program reusing some parts --> This second program failed and I couldnt understand why so I checked again my first program and... it failed! I found out there's an incompatibility between latest versions of firefox (38) and selenium < 3.0 so I guessed I was facing a problem of compatibility between versions.
I tried to update selenium to 3.0.1 and use geckodriver and I made it work on my laptop (windows) but it failed on my RPi3
(process:3177): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
Error: no display specified
I googled and try to use Xvfb, basically add to my .sh
sudo Xvfb :1 -screen 0 1024x768x24 &
export DISPLAY=":1"
but the result was another error:
(process:3314): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
Xlib: extension "RANDR" missing on display ":1".
So far, seems for me I have 3 options:
- Keep latest selenium and solve the display error --> The options I found for the "RANDR" error didnt work and I dont know what to do. Could anyone help?
- Go back to selenium 2.53.1 and downgrade iceweasel. My problem here is I cant find older versions of iceweasel anywhere. This is probably very easy but Im kind of new to linux
- Installing another browser --> any suggestions? (chromium seems to throw some errors too)
Thanks and sorry for a so long message but wanted to make everything clear