Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This version of ChromeDriver only supports Chrome version 117 Current browser version is 116 #1558

Open
teylerk opened this issue Sep 13, 2023 · 19 comments

Comments

@teylerk
Copy link

teylerk commented Sep 13, 2023

Does anyone know the command to allow for it to pull the current stable version of Chrome driver for 117?

@oniononion36
Copy link

I think it's saying that your chrome is out of date since 117 came out today.

@Habidis
Copy link

Habidis commented Sep 13, 2023

What' I've done so far and it works while there is an update here:

  • Delete this file:

c:\Users\YOUR USERNAME\AppData\Roaming\undetected_chromedriver\undetected_chromedriver.exe

  • Navigate to that folder and copy there the prior version of undetected_chromedriver.exe you may have.

  • Apply the Read Only flag to that file, in order for your Undetected CromeDriver to not update it to the latest version, in this case, 117.

That's all.

@SgtSobieski
Copy link

What' I've done so far and it works while there is an update here:

  • Delete this file:

c:\Users\YOUR USERNAME\AppData\Roaming\undetected_chromedriver\undetected_chromedriver.exe

  • Navigate to that folder and copy there the prior version of undetected_chromedriver.exe you may have.
  • Apply the Read Only flag to that file, in order for your Undetected CromeDriver to not update it to the latest version, in this case, 117.

That's all.

Where would I get this .exe from, if I dont have the correct version?

@Habidis
Copy link

Habidis commented Sep 13, 2023

I had lots of .exe files on that folder with temp filenames, and I renamed the latest one to undetected_chromedriver.exe

Also, there must be a place where we can get older versions of ChromeDriver, but I don't know wich one.

@ecossett-hc
Copy link

ecossett-hc commented Sep 13, 2023

I am experiencing the same issue. I have been seeing this issue, but it is a bit more clear to me now.

When a newer major version (117 vs 116) of Chrome releases, but is not installed, undetected-chromedriver downloads the latest available version, instead of the currently installed build version or milestone version.

Here's an example that I recently ran into

  1. Current installed version is 116.0.5845.189
  2. chromedriver that undetected-chromedriver downloaded was for version 117.0.5938.62

In this scenario, I would expect that undetected-chromedriver would do either of the following

  1. Find the matching Milestone (116) in https://googlechromelabs.github.io/chrome-for-testing/latest-versions-per-milestone.json and download this driver before patching it
  2. Find the matching Build version (116.0.5845) in https://googlechromelabs.github.io/chrome-for-testing/latest-patch-versions-per-build-with-downloads.json and download this driver before patching it

Currently it seems undetected-chromedriver downloads the latest version every time. Our best workaround is to detect when this happens and force Chrome to update immediately on our servers that run these scripts. Normally though, our servers will update randomly throughout the week as some auto-update to a newer version of 116, and some auto-update to 117.

@cprieto64
Copy link

I am running this on a ubuntu server. Can someone help how do I resolve this ?

same question..

@rafa761
Copy link

rafa761 commented Sep 13, 2023

Hi there.

I'm having the same Issue.

@Jmqcooper1
Copy link

I have the same issue, but the annoying part is that I have updated my chrome, which is the same version as the Chromedriver is telling me I should use. Still however, I am getting stacktraces...

@JoGreen
Copy link

JoGreen commented Sep 13, 2023

Experiencing the same.. solved forcing the update on my server. on my osx no problem occurred
I needed to move from chromium to chrome stable version

@sxcntqnt
Copy link

I updated all versions of the chrome instance in my pc
then changed this line of code

driver = uc.Chrome()
driver.get('https://www.example.com')

to

driver = webdriver.Chrome()
driver.get('https://www.example.com')

I hope that helps

@chris-mccabe
Copy link

i updaetd and now getting 403s on all requests 😭

@sxcntqnt
Copy link

you can try passing some uc_options here
driver = webdriver.Chrome(options=uc_options)
driver.get('https://www.example.com/')

I hope that helps

@chris-mccabe
Copy link

@project621c what should be in the uc_options ?

@QA-Altooro
Copy link

QA-Altooro commented Sep 14, 2023

You can fix it by choosing the old version version_main=116.
For example:

uc.Chrome(version_main=116)

But you have to change it manually after updating the chrome version :(

@ortizjeison
Copy link

You can fix it by choosing the old version version_main=116. For example:

uc.Chrome(version_main=116)

But you have to change it manually after updating the chrome version :(

Yeah! it works perfectly, thanks

@SilentDelirium
Copy link

Where and in which file does one place this line?

uc.Chrome(version_main=116)

@QA-Altooro
Copy link

@SilentDelirium You only have to add version_main=YOUR_CURRNET_CHROME_VERSION, in the place you initialize the undetected browser

@oussema1990
Copy link

oussema1990 commented Sep 18, 2023

You can fix it by choosing the old version version_main=116. For example:

uc.Chrome(version_main=116)

But you have to change it manually after updating the chrome version :(

where can i add uc.Chrome(version_main=116)

multiCapabilities: [{
    browserName: 'chrome'
    chromeOptions:
      args: [
        # '--headless',
        # '--disable-gpu',
        'test-type',
        'lang=en-US',
        'window-size=1280,1080',
      ],
      prefs:
        intl: accept_languages: "en-US"
        count: 1
  }]

@myronenko
Copy link

I've run into such an issue when trying to run Selenium tests:

  • Chrome version was 117
  • chromedriver that was getting used was 117
  • but Chrome for Testing was 116 thus failing with the error above

Solution - I had to specify driver version when running the test:

mvn clean verify -Dtest=TestName -Dwdm.chromeVersion=116

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests