ultrafunkamsterdam / undetected-chromedriver

Custom Selenium Chromedriver | Zero-Config | Passes ALL bot mitigation systems (like Distil / Imperva/ Datadadome / CloudFlare IUAM)
https://github.com/UltrafunkAmsterdam/undetected-chromedriver
GNU General Public License v3.0
9.53k stars 1.13k forks source link

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

Open teylerk opened 11 months ago

teylerk commented 11 months ago

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

oniononion36 commented 11 months ago

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

Habidis commented 11 months ago

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

That's all.

SgtSobieski commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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

same question..

rafa761 commented 11 months ago

Hi there.

I'm having the same Issue.

Jmqcooper1 commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

i updaetd and now getting 403s on all requests 😭

sxcntqnt commented 11 months ago

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 commented 11 months ago

@project621c what should be in the uc_options ?

QA-Altooro commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

Where and in which file does one place this line?

uc.Chrome(version_main=116)

QA-Altooro commented 11 months ago

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

oussema1990 commented 11 months ago

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 commented 11 months ago

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

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

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