Error when using Selenium

Question:
I would like to use Selenium on a python repl but it gives me an error when launching a simple task

It says chromedriver should be in PATH and also gives a permission error about selenium manager.

What can I do ? is it possible to use Selenium on Repl ?
Thanks

from selenium import webdriver
browser = webdriver.Chrome()
url = "https://www.google.com"
browser.get(url)
html = browser.page_source
print(html)
browser.quit()

As I have found the solution in another topic, I will put it there.

You need to show hidden files and edit replit.nix to add both these lines in the deps section

pkgs.chromium
pkgs.chromedriver

and it will work correctly after that

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.