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

Browser is not running! #45

Open
arcadia-ai opened this issue Mar 11, 2025 · 6 comments · May be fixed by #47
Open

Browser is not running! #45

arcadia-ai opened this issue Mar 11, 2025 · 6 comments · May be fixed by #47

Comments

@arcadia-ai
Copy link

I ran the program following the quick start instructions, and it resulted in an error.
python version:3.12.5
Image

@arcadia-ai
Copy link
Author

Alright, I found that the Chrome installation location on my computer is not the default one.

Image

@dannysigalovich
Copy link

I have opened PR to fix this. you can look the code there

@arcadia-ai
Copy link
Author

I have opened PR to fix this. you can look the code there

I don't think this issue has been resolved because my Chrome installation location is not in the standard directory.
Image

Image

@dannysigalovich
Copy link

Maybe you can add function to this class to choose the directory as options param and create PR for new feature

@thalissonvs
Copy link
Owner

Hi @arcadia-ai! You can specify the browser location, take a look at this example:

from pydoll.browser.chrome import Chrome
from pydoll.browser.options import Options

async def main():
  options = Options()
  options.binary_location = '/your/path/to/chrome'
  
  async with Chrome(options=options) as chrome:
      ....

Also, sorry for the poor documentation, I'll improve during this week :)

@thalissonvs thalissonvs linked a pull request Mar 11, 2025 that will close this issue
@nanmi
Copy link

nanmi commented Mar 13, 2025

Hi @arcadia-ai! You can specify the browser location, take a look at this example:

from pydoll.browser.chrome import Chrome
from pydoll.browser.options import Options

async def main():
options = Options()
options.binary_location = '/your/path/to/chrome'

async with Chrome(options=options) as chrome:
....
Also, sorry for the poor documentation, I'll improve during this week :)

Yes, I have set the chrome path as you recommended, and this chrome is the stable version I downloaded based on this link https://googlechromelabs.github.io/chrome-for-testing/, but it seems that even this will have such a problem

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

Successfully merging a pull request may close this issue.

4 participants