Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

selenium / seleniumwire unknown error: cannot determine loading status from unknown error: unexpected command response

Here is the error:

selenium.common.exceptions.WebDriverException: Message: unknown error: cannot determine loading status
from unknown error: unexpected command response
  (Session info: chrome=103.0.5060.53)

I'm using proper webdriver and chrome version:

Here is the script, its job is to open a webpage from the normal user data directory and provide a response.

from seleniumwire import webdriver  # Import from seleniumwire


chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument("user-data-dir=C:\\selenium") 

driver = webdriver.Chrome(chrome_options=chrome_options)

driver.get('https://katalon.com/
')


for request in driver.requests:
    if request.response:
        print(
            
            request.response.status_code,
            
        )
like image 888
Col Burn Avatar asked Aug 31 '25 20:08

Col Burn


1 Answers

You need to upgrade Google Chrome and your Chrome Driver to version 104:

  1. Install Google Chrome Beta from here: https://www.google.com/chrome/beta/

  2. Update ChromeDriver to 104 manually (it is not in brew yet) https://chromedriver.storage.googleapis.com/index.html?path=104.0.5112.20/

  3. Set the chrome_options.binary_location:

    Windows - "C:\Program Files\Google\Chrome Beta\Application\chrome.exe"

    MacOS - "/Applications/Google Chrome Beta.app/Contents/MacOS/Google Chrome Beta"

like image 56
Dmytro Durach Avatar answered Sep 04 '25 07:09

Dmytro Durach