Skip to content
Sign upLog in
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
2

Driver is unable to open chrome using selenium webdriver

RamnathSaigal
RamnathSaigal

This is my code

import selenium
from selenium import webdriver
driver=webdriver.Chrome(executable_path=r"C:\Users\ramnath.kumar\Desktop\chromedriver")
driver.get("https://test.salesforce.com")

3 years ago
You are viewing a single comment. View All
1
eco27
eco27

well because repl is run on a vm (virtual machine) not your computer, the path to the driver isn't C:\Users\ramnath.kumar\Desktop\chromedriver. you can do some bash commands in a .replit file to figure out what the correct path is and install the driver.

3 years ago
1
lcardot
lcardot

@MrEconomical
Hi, I know its been a while since your post. If your still alive, how would you go about doing this? I'm having an issue finding the correct path because of replit's nature. Thanks

2 years ago
1
eco27
eco27

@lcardot
you need to install chromedriver onto the repl

2 years ago
1
sethbowers97
sethbowers97

@MrEconomical
how do you install the chromedriver onto the repl? I saved chromedriver.exe onto my desktop and uploaded it to my repl project. Is this not sufficient?

1 year ago