Forums

cannot found ChromeDriver

Hi, I am trying to use Selenium with Python. My code works perfectly fine when running in VS Code. However, when I run the same code on PythonAnywhere, I encounter an error stating that the Chrome driver cannot be found or doesn't have the necessary permissions. I suspected that this might be due to the Chrome driver being located in my local folder. So, I uploaded the Chrome driver to PythonAnywhere and provided the path as /home/Myname/mysite/chromedriver. Despite this, I keep encountering the same error. Has anyone had a similar experience or can anyone help me troubleshoot this issue? Thank you in advance!

Use the pre-installed chromedriver. See https://help.pythonanywhere.com/pages/selenium

Thanks for your help. It fixed by the article!

Glad to hear that!