pydoll icon indicating copy to clipboard operation
pydoll copied to clipboard

Browser is not running!

Open arcadia-ai opened this issue 9 months ago • 5 comments

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

arcadia-ai avatar Mar 11 '25 03:03 arcadia-ai

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

Image

arcadia-ai avatar Mar 11 '25 03:03 arcadia-ai

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

dannysigalovich avatar Mar 11 '25 08:03 dannysigalovich

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

arcadia-ai avatar Mar 11 '25 08:03 arcadia-ai

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

dannysigalovich avatar Mar 11 '25 09:03 dannysigalovich

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 avatar Mar 11 '25 11:03 thalissonvs

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

bobbych94 avatar Mar 13 '25 02:03 bobbych94