I want to automatize some tasks on Whatsapp Web using Python and Selenium over my Raspberry Pi 3B+ and i having dificult to found a web browser compatible with all this requirements.

  • I tried Chromium but Whatsapp web d'not work and the page directs to others moderns browsers (I tried this);
  • I tried Firefox, but geckodriver (webdriver of Firefox) d'not not have updated Arm7 driver (most recent is V 0.23 and not work on most recent Firefox version required by Whatsapp web);
  • And finaly searching about the Chrome, is it not compatible with Raspberry Pi.

I am lost and d'not know what to do.


I have WhatsApp Webb working on Rasp Pi. I use Chromium and the ChromiumDriver.

First install the Chorium Browser and WebDriver. Copy the below in your Terminal.

sudo apt-get install chromium-chromedriver

Here is my Python code:

from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import time
options = Options()
options.add_argument("--user-data-dir=chrome-data") #this is needed to stop WhatsApp asking for QR code verification after your first time
options.add_experimental_option("excludeSwitches", ["enable-automation"])
options.add_experimental_option('useAutomationExtension', False)
driver = webdriver.Chrome('/usr/lib/chromium-browser/chromedriver', options=options)
driver.find_element_by_xpath("//*[@title='REMOVED']").click() #change Removed to the number of group you are sending a message to
driver.find_element_by_xpath('//*[@id="main"]/footer/div[1]/div[2]/div/div[2]').send_keys('MESSAGE HERE')

I have only found one error and forward slashes will not send. Here is my StackOverflow post about it. I found your post while trying to resolve my error.

Please note I am on a Rasp 4 and I'm not 100% sure if it will work on Rasp 3.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.