SergeyPirogov / webdriver_manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong Chromedriver version gets downloaded when packaged with pyinstaller

abilash-c opened this issue · comments

When I use Pyinstaller to package my program and execute the exe, it downloads the Chromedriver version 114.0.5735.90 irrespective of the Chrome version.

I had Chrome (x64) version 116.0.5845.111 and then updated to 117.0.5938.63. In both cases, the same driver version was downloaded.

Due to this I am getting the error at driver.get('.....')

unknown error: cannot determine loading status
from disconnected: received Inspector.detached event
  (Session info: chrome=117.0.5938.63)

Pyinstaller version 4.5.1
webdriver-manager version 4.0.0

I need to solve this urgently, can someone please help with an interim solution

Update: Running with the console solves this issue. I am still not sure exactly why running without console doesn't work