I am trying to use Selenium but I am facing the following WebDriverException: WebDriverException: unknown error: unexpected command response in Python. We are going to Learn about All Possible Solutions So Let’s Get Started with This Article.
How WebDriverException: unknown error: unexpected command response Error Occurs?
I am trying to use Selenium but I am facing the following WebDriverException:
WebDriverException: unknown error: unexpected command response (Session info: chrome=103.0.5060.66)
So here I am writing all the possible solutions that I have tried to resolve this error.
How To Solve WebDriverException: unknown error: unexpected command response?
How To Solve WebDriverException: unknown error: unexpected command response?
To Solve WebDriverException: unknown error: unexpected command response This is an Error in Chrome version 103.0.5060.114. So You need to downgrade the Chrome Browser version to 102 and then downgrade chromewebdriver version to 102. First of All, You Need to Uninstall Chrome Browser And Then Download Chrome 102 but Before uninstalling Chrome You May Lost All Data in Your Chrome Just Make Sure you have a backup of your chrome Data. Now, You need to Downgrade Chrome WebDriver to 102 If you are using Chrome version 102, please download ChromeDriver 102.0.5005.61. Download and assign this web driver path in selenium. Now, Your Chrome Version is 102 and your web driver version is 102 and Now your error must be solved. Thank You.
WebDriverException: unknown error: unexpected command response
To Solve WebDriverException: unknown error: unexpected command response One Common Error is When You are Using Different Versions of Chrome Browser And Different Chrome Web Driver. If You are using Chrome Browser version 102 and then you are using Chrome web driver 103 then You will face this error. So Just Download Chrome Version same as Chrome Web Driver Version.
Solution 1: Downgrade Chrome
This is an Error in Chrome version 103.0.5060.114. So You need to downgrade the Chrome Browser version to 102 and then downgrade chromewebdriver version to 102.
Downgrade Chrome Browser
First of All, You Need to Uninstall Chrome Browser And Then Download Chrome 102 but Before uninstalling Chrome You May Lost All Data in Your Chrome Just Make Sure you have a backup of your chrome Data.
Downgrade Chrome WebDriver
Now, You need to Downgrade Chrome WebDriver to 102 If you are using Chrome version 102, please download ChromeDriver 102.0.5005.61. Download and assign this web driver path in selenium.
Now, Your Chrome Version is 102 and your web driver version is 102 and Now your error must be solved. Thank You.
Solution 2: Use the Same Browser and Chrome Web Driver
One Common Error is When You are Using Different Versions of Chrome Browser And Different Chrome Web Driver. If You are using Chrome Browser version 102 and then you are using Chrome web driver 103 then You will face this error.
So Just Download Chrome Version same as Chrome Web Driver Version.
Conclusion
It’s all About this error. I hope We solved Your error. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read
- Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’
- ImportError: cannot import name ‘docevents’ from ‘botocore.docs.bcdoc’
- Error: Cannot find module ‘dotenv’
- cannot read properties of null (reading ‘addEventListener’)
- A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received