Adding PATH variables.
I'm trying to connect a chromedriver to python but I need to add it to PATH. Is there any way I could do this?
You have beaten yourself this time, and I appreciate you and hopping for some more informative posts in future. Thank you for sharing great information to us.Ethereum NFT
Some other benefits of our matchmaking site include daily & weekly match alerts, enhanced search and single-page registration. Have special marriage / matrimony ... https://www.matchfinder.in
Hey! It looks like the error message is being confusing, the actual issue is that the path to chromedriver that you specified (./chromedriver.exe
) doesn't exist. If you look, the actual file doesn't have the .exe
extension, so you need to remove that. Repl.it runs linux and not windows so executables have a different format and no extension by convention.
Also, chromedriver
has to be marked as an executable. Do ctrl-shift-p and type "Open Shell" and then run chmod +x ./chromedriver
and everything should work! Pretty sure you still have some other errors.
@Kognise I tried running chmod +x ./chromedriver
. Nothing got printed into the shell but when I ran the file again, the error saying that
(The process started from chrome location /usr/bin/chromium-browser is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
@Kognise It may have been because I had the wrong chromedriver version?
You can't use
.exe
files on repl.it because repl.it uses linux (technically you can but its a lot easier to just use the linux version). You can use this code instead of yourdriver
line:You also have the wrong chromedriver binary. If you open a shell with ctrl+shift+s in the repl, you can see
And your chromedriver binary only supports version 83:
You can download the correct binary from here or from my repl.
@Scoder12 Thank you! This worked!
@Scoder12 this is working.
To those who are still struggling, download the correct version of chromedriver on the official website. Must be same as your chromium-browser version on Ubuntu.
Code works