-
-
Notifications
You must be signed in to change notification settings - Fork 465
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
Amendment to __get_binary in driver_cache.py #663
Comments
I encountered the same issue, and the same solution worked for me. |
Yeah, same issue here. Is there a workaround for this? |
I just came across with this thread, someone else just opened an issue, #664 (comment), yeah, would be great to find someone how has written access to create a quick MR and fix the issue |
The fix is in the code detailed above in __get_driver() i.e. to add the following line: if 'THIRD_PARTY' in f: On my debian 12 machine the driver_cache.py file is located in /usr/local/lib/python3.11/dist-packages/webdriver_manager/core Let me know if you have any issues and I will see if I can help and/or send you the revised driver_cache.py file. |
Opened PR, #666 - Spooky! |
Distributed in chromedriver-linux64.zip is a new file called THIRD_PARTY_NOTICES.chromedriver.
This causes a problem as the current code for __get_binary in driver_cache.py loops through the files in relevant directory which consist of chromedriver, LICENSE.chromedriver and THIRD_PARTY_NOTICES.chromedriver.
The problem is that the existing code is not aware of the new file (i.e. THIRD_PARTY_NOTICES.chromedriver) and therefore picks this file as the executable which it is not.
The original code was as follows:
My fix is to update this code as follows:
Apologies - I don't know how to get this amendment into the source
The text was updated successfully, but these errors were encountered: