I’m new to use selenium web-driver. if u ask me then I searched a lot to learn selenium. I properly setup the pycharm to run my selenium code with libraries like selenium & webdriver_manager. The problem which I’m facing is that, when I write a code of selenium ” driver.get(“https://web.whatsapp.com/”) ” , it do open a chrome tab but the search bar of that tab is empty.
just as you can see the error1.png photo, it shows me a blank chrome tab, so can u help me solving the error?
other details :
my chrome version : Version 125.0.6422.113 (Official Build) (64-bit)
my driver version : (Stable) Version 125.0.6422.77
my path of driver: as per using the latest version of selenium, it can find the driver automatically if the driver and code is present into same file/directory.
my code :
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
import pywhatkit
import time
service = Service(executable_path="chromedriver.exe")
driver = webdriver.Chrome(service=service)
driver.get("https://web.whatsapp.com/")
time.sleep(10)
driver.quit()
my error while executing :
selenium.common.exceptions.WebDriverException: Message: chrome not reachable
output of the error I’m facing. A chrome tab with no proper search bar content. it like a search bar without the input is loading and showing the word –> ” data; ” into search bar
my question: if anyone know solution or may have encountered this problem, please do help to clear my doubts. As I’m working on it, I get to know that new selenium can install the latest drivers itself, so i have tried that way too, but the error is the same, it can’t load my link into the chrome search bar. even i change my code everytime, the error is still the same.
please do help me out from this error.!
Thanks for the help in advance 🙂 !!
I tried using pywhatkit.search() function to load the web page, but it can’t press the selected buttons on the web page using selenium driver. it won’t allow to use the function like driver.find_element() , driver.clcik(), etc.
if there is any other library to do this work easily then let me know !
Dhrumilsinh Rathod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.