Answer the question
In order to leave comments, you need to log in
What to do, selenium python window closes immediately?
I wrote a simple authorization script on the site, when I start chrome it opens for 1 second and immediately closes, and I see it in the console, I googled everything I can - it doesn’t help, what should I do?
DevTools listening on ws://127.0.0.1:49210/devtools/browser/ae9ecd2f-37c...
Traceback (most recent call last):
File "main.py", line 6, in
driver = webdriver.Chrome(executable_path = 'chromedriver.exe')
File "C:\Users\Block\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 81, in __init__
desired_capabilities=desired_capabilities )
File "C:\Users\Block\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "C:\Users\Block\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION , parameters)
File "C:\Users\Block\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response( response)
File "C:\Users\Block\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 93
Current browser version is 95.0.4638.54 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question