-1

Exception: CONTEXT SWITCHER: Exception while switching context: Message: An unknown server-side error occurred while processing the command. Original error: No Chromedriver found that can automate Chrome '115.0.5790'. E Stacktrace: E UnknownError: An unknown server-side error occurred while processing the command. Original error: No Chromedriver found that can automate Chrome '115.0.5790'.

I have chrome driver version 115.0.5790.170 in the env path.

I have upgraded my selenium version 4.11.2 and appium python client to 2.11.1

I have tried chrome driver version 114 and 115, both failed.

2 Answers2

0

Try using --allow-insecure chromedriver_autodownload flag while starting appium, the issue with chromedriver is you require exact version and a version mismatch throws the error you are getting.

Sushem
  • 39
  • 7
-1

The error you're seeing indicates a mismatch between the version of Chrome browser and the version of Chromedriver you're using for Selenium testing. To fix this:

  1. Check Chrome Version: Find out your Chrome browser's version. You can do this by going to the Chrome menu > Help > About Google Chrome.

  2. Download Chromedriver: Go to the Chromedriver download page (https://sites.google.com/chromium.org/driver/) and download the version of Chromedriver that matches your Chrome browser's version.

  3. Update Path or Use Direct Path: Place the downloaded Chromedriver executable in a location and add that location to your system's PATH environment variable. Alternatively, you can specify the path to the Chromedriver directly in your testing code.

Here's a simple example of using Chromedriver in Python:

from selenium import webdriver

# Specify the path to Chromedriver
chromedriver_path = '/path/to/chromedriver'

# Set up Chrome browser with Chromedriver
driver = webdriver.Chrome(executable_path=chromedriver_path)

# Your testing code here

# Close the browser
driver.quit()

Remember to replace /path/to/chromedriver with the actual path where you've placed the downloaded Chromedriver executable.

By ensuring that your Chromedriver version matches your Chrome browser's version and specifying the correct path, you should be able to resolve the compatibility issue and run your tests successfully.

Mani
  • 1,199
  • 2
  • 9
  • 22