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

Chrome version "131.0.6778.70" error #686

Open
Usmanfawad opened this issue Nov 13, 2024 · 0 comments
Open

Chrome version "131.0.6778.70" error #686

Usmanfawad opened this issue Nov 13, 2024 · 0 comments

Comments

@Usmanfawad
Copy link

Usmanfawad commented Nov 13, 2024

I am experiencing an issue with the webdriver_manager when trying to use it with the latest version of Chrome. The following error occurs:

DevTools listening on ws://127.0.0.1:55043/devtools/browser/f8c43d13-73e5-48a7-9ea7-912ac198e3c0
Traceback (most recent call last):
  File ---, line 53, in launch_driver
    chrome_opt.add_experimental_option("prefs", prefs)
AttributeError: 'WebDriver' object has no attribute 'add_experimental_option'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File ---, line 377, in <module>
    self = MasscourtScraper()
  File ---, line 149, in __init__
    self.driver = self.launch_driver()  # Launch web driver
  File ---, line 64, in launch_driver
    driver = uc.Chrome(options=chrome_opt)
  File ---, line 258, in __init__
    self.patcher.auto()
  File ---, line 178, in auto
    self.unzip_package(self.fetch_package())
  File ---, line 308, in unzip_package
    with zipfile.ZipFile(fp, mode="r") as zf:
  File ---, line 1249, in __init__
    self.fp = io.open(file, filemode)
OSError: [Errno 22] Invalid argument: 'C:\\Users\\SAUCEW~1\\AppData\\Local\\Temp\\tmp0qwnh8s4'

The webdriver-manager tries to install chromedriver-win32.zip even though I'm on a x64 machine along with virus detected.

Steps to Reproduce:

  1. Install the latest version of Chrome.
  2. Use webdriver_manager to launch the Chrome driver.
  3. Encounter the error mentioned above.

Expected Behavior:

The Chrome driver should launch without errors.

Environment:

  • Chrome version: 131.0.6778.70
  • webdriver_manager version: 4.0.2
  • Python version: 3.12.7
  • Operating System: Windows 10

Additional Information: N/A

Please let me know if there are any workarounds or if a fix is in progress. Thank you!

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

1 participant