Here's 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 too open a webpage from the normal suer 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,
)
CodePudding user response:
I think this will work but as a temporary workaround.
while True:
try:
driver.get('https://katalon.com/')
break
except:
continue
CodePudding user response:
I downloaded chromedriver_mac64.zip instead of chromedriver_mac64_m1.zip and it worked properly.
CodePudding user response:
Please make sure your Chrome is updated to the latest version. Had the same problem and this helped
CodePudding user response:
Looks like this is a problem in chromium. See this Selenium thread and the Chromium issue.