W
W
WilayzJerti2021-04-25 19:20:20
Python
WilayzJerti, 2021-04-25 19:20:20

Why does chromedriver (selenium) run on LAN?

You need to log in through the script on the site using chromedriver

path = './chromedriver.exe'
  browser = Chrome(path, options=opts)
  browser.get("https://login.dnevnik.ru/login")

conclusion:
Traceback (most recent call last):
  File "C:\Users\Fantom\Desktop\DnevnikRuBot-master\DnevnikRuBot.py", line 225, in <module>
    browser = Chrome(path, options=opts)
  File "C:\Users\Fantom\AppData\Roaming\Python\Python39\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in __init__
    self.service.start()
  File "C:\Users\Fantom\AppData\Roaming\Python\Python39\site-packages\selenium\webdriver\common\service.py", line 81, in start
    raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexa2007, 2021-04-25
@WilayzJerti

put the file chromedriver.exe next to the python file
in the folder C:\Users\Fantom\Desktop\DnevnikRuBot-master\

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question