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)
Chromedriver v2.21 for armv7l (Download)
The build for the chromedriver is unofficial, they do not provide armv7l builds.
Im afraid not. But you can use Chromium, which google chrome is derived. Having said that they are not the same thing. Also the Chromium browser in the rpi repository has been tweaked for the pi, to make it run as good as it can.
sudo apt-get install chromium-browser
The short answer is that you can't install Google Chrome. We have a blog post that goes into depth about the topic in general. The gist of it is that Google Chrome isn't offered for ARM processors.
Chromium can be installed on a Raspberry Pi 2 or 3, though it isn't the same thing.
Is the script still alive after it opens Chrome on boot? Do a ps aux to check, my guess it that a webbrowser.Error was raised by either get or open while in the except: block and the script simply failed.
You could add some logging or redirect stdout to a file, if once you run the script with autostart you can't simply see the output anymore.
In addition ...
A summary of what we learned via troubleshooting in the comments section:
Although Chrome has automatic updating on Windows and macOS, Chromium does not auto-update on Raspbian nor any flavor of Linux. To force an update of Chromium, run:
sudo apt update
sudo apt install chromium-browser
It's hard to pinpoint exactly why logins were working fine on one ...
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)
The only method i know is this, but you have to pay for the exagear softwere that let you run x86 applications on ARM-based mini PCs. Otherwise is not possible
, you can see more on the Raspberry pi forums.
It's a bummer but Chromium is almost chrome.
You can use this script with this plugin https://chrome.google.com/webstore/detail/downloaders/lfjamigppmepikjlacjdpgjaiojdjhoj/
C:\path\to\ssh.exe email@example.com && cd "/where/to/download" && wget -c --referer="%r" "%u"
You will need to setup up key-based logins with no password on your Pi.
Chromium is the fully open source version of Chrome. Since the complete source code is available, anyone can try and compile it, so pre-compiled versions for a variety of platforms including the Pi are available.
Chrome proper includes proprietary bits, so the only binaries available are from Google. Their download page is a bit high on glitz, low on ...
From your description what I understand is you need to connect to google spread sheet and then you need to lookup some id over there.
If that is the case then on the page "Create Client ID" select the radio button "service account" and that takes you to subsequent screen where you have to provide service name and select the credential file to be saved as ...