D
D
DAnya782021-12-18 23:05:25
Python
DAnya78, 2021-12-18 23:05:25

Why can't get a session?

A couple of days ago I launched the browser and connected and worked fine with it
. Now I try to connect again, but here is the error:

driver = webdriver.Remote(
Traceback (most recent call last):
  File "C:\Users\dgana\OneDrive\Рабочий стол\test\test.py", line 5, in <module>
    driver = webdriver.Remote(
  File "C:\Users\ana\PycharmProjects\pythonProject\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 268, in __init__
    self.start_session(capabilities, browser_profile)
  File "C:\Users\ana\PycharmProjects\pythonProject\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 362, in start_session
    self.session_id = response['sessionId']
TypeError: string indices must be integers

Deleted selenium and folders in pycharm and reinstalled but didn't help. On the Internet they say that on windows you need to disable the proxy to the local network, but I don’t even have a proxy enabled.
Maybe there are other options?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
ab1, 2021-12-20
@ab1

Try driver.session_id

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question