seleniumbase / SeleniumBase

📊 Python's all-in-one framework for web crawling, scraping, testing, and reporting. Supports pytest. UC Mode provides stealth. Includes many tools.
https://seleniumbase.io
MIT License
4.67k stars 929 forks source link

Is it possible to use chrome binary location with seleniumbase #1682

Closed sunny9495-dev closed 1 year ago

sunny9495-dev commented 1 year ago

Hi,

First of all, I am really impressed with the library.

My question is, is it possible to use chrome binary location with SeleniumBase?

If not, is there any separate parameters to add to PyInstaller to install on client side.

mdmintz commented 1 year ago

Hello, and thank you!

SeleniumBase automatically detects the browser binary that's located on the system PATH. If there's no matching driver, SeleniumBase automatically downloads one to the seleniumbase/drivers folder.

There's a thread about using PyInstaller with SeleniumBase here (example with the SB Recorder): https://github.com/seleniumbase/SeleniumBase/issues/1075#issuecomment-973021116

Here's a video showing the PyInstaller executable launching the SB Recorder (and SB tests via the Recorder App):

https://user-images.githubusercontent.com/6788579/142454125-1b4a82e7-13be-4842-99bd-aedc79f3ddc6.mov

The SeleniumBase Recorder App has had many improvements since that video was created.

mdmintz commented 1 year ago

A newer version of SeleniumBase has options for setting a custom Chrome binary location. See https://github.com/seleniumbase/SeleniumBase/issues/1709