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

Configuration option to specify the path of Chrome binary #3

Open
GA8R137 opened this issue Sep 18, 2022 · 0 comments
Open

Configuration option to specify the path of Chrome binary #3

GA8R137 opened this issue Sep 18, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@GA8R137
Copy link

GA8R137 commented Sep 18, 2022

Hi,

Nice work, I tested the app and after debugging some problems it works perfectly well.

The issue is that I really don't use Chrome, so I have just a portable version from portableapps.

To try to make your code work I installed Chrome Beta, but it didn't work.

My guess is that is using the default path for Windows so I changed the folder name from
C:\Program Files\Google\Chrome Beta\Application\chrome.exe
to
C:\Program Files\Google\Chrome\Application\chrome.exe

And now it's working

I tried to make this work with another Chrome Binary but I get lost
for what I was reading must be a Selenium setting but I didn't find the right place to add this

from selenium.webdriver.chrome.options import Options
options = Options()
options.binary_location = "c:\myproject\chromeportable\chrome.exe"
# you may need some other options
#options.add_argument('--no-sandbox')
#options.add_argument('--no-default-browser-check')
#options.add_argument('--no-first-run')
#options.add_argument('--disable-gpu')
#options.add_argument('--disable-extensions')
#options.add_argument('--disable-default-apps')
driver = webdriver.Chrome("c:\myproject\driver\chromedriver.exe",
            options=options)

https://stackoverflow.com/questions/49234703/python3-selenium-and-chrome-portable

If you tell me how I can try to add the settings, options and other stuff myself.

Many thanks.

@mirusu400 mirusu400 added the enhancement New feature or request label Sep 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants