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

cannot find Chrome binary #559

Closed
AndrewPriadka opened this issue Jul 25, 2023 · 2 comments
Closed

cannot find Chrome binary #559

AndrewPriadka opened this issue Jul 25, 2023 · 2 comments

Comments

@AndrewPriadka
Copy link

Hello, I am faced with the next problem on my MacBook with an Intel processor.
The chromedriwer is downloading into .wdm but then I get this.
selene==2.0.0rc3
selenium==4.9.1
webdriver-manager==3.9.1

../../venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py:378: in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
../../venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py:440: in execute
    self.error_handler.check_response(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x13bb75030>
response = {'status': 500, 'value': '{"value":{"error":"unknown error","message":"unknown error: cannot find Chrome binary","stac...ff8191b71d3 _pthread_start + 125\\n19  libsystem_pthread.dylib             0x00007ff8191b2bd3 thread_start + 15\\n"}}'}

@ema-aka-young
Copy link

ema-aka-young commented Jul 25, 2023

Looks like it's a Chromedriver issue: ChromeDriver requires a Chrome for Testing binary by default

This is workaround that works for me:

chrome_options = ChromeOptions()
chrome_options.binary_location = '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'

@AndrewPriadka
Copy link
Author

@ema-aka-young Thanks! Work for me.

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

3 participants