Comments (11)
(In case someone else runs into this.)
I was seeing the same issue under Windows Server.
seleniumbase install chromedriver
Worked fine, no errors, but seleniumbase would die with "cannot find Chrome Binary".
For some reason, I HAD to use seleniumbase install chromedriver latest.
As soon as I did that, everything worked fine.
from seleniumbase.
Hi @ithjz Have you tried using seleniumbase install chromedriver
? It doesn't seem to be on your path.
from seleniumbase.
Additionally, get the new seleniumbase version 1.15.8 to take care of those deprecation warnings you see, which are related to the version of python used. Also, add a "--upgrade" to your pip install to make sure you have the latest versions of python packages being used: pip install -r requirements.txt --upgrade
from seleniumbase.
@ithjz Now, v1.15.10 should take care of the remaining DeprecationWarnings you saw (https://github.com/seleniumbase/SeleniumBase/pull/209/files), which updated methods that use regular expressions to pass raw strings. Use pip install -U seleniumbase --no-cache-dir
to reinstall from pypi, (Or pip install -U -i https://pypi.anaconda.org/seleniumbase/simple seleniumbase
if you're using Anaconda Cloud). Then get chromedriver into your seleniumbase drivers folder with seleniumbase install chromedriver
.
from seleniumbase.
I haven't heard back in 4 days, so I'll assume this issue is resolved. Please update to the latest version of seleniumbase if you haven't already.
from seleniumbase.
** install **
Usage:
seleniumbase install [DRIVER_NAME] [OPTIONS]
(Drivers: chromedriver, geckodriver, edgedriver,
iedriver, operadriver)
Options:
VERSION Specify the version.
(Default chromedriver version = 2.44)
Use "latest" for the latest version.
-p OR --path Also copy the driver to /usr/local/bin
It would be cool to specify custom path!
from seleniumbase.
@bukowa It can always be copied to another location, but these are the safe paths to use. There could be permissions issues, etc, when using other paths. The only time that the seleniumbase/drivers
folder isn't good enough is when using a Selenium Grid - that requires the driver to be on the system path. Otherwise, it's safer to use seleniumbase/drivers
because then you could have a different version of the browser driver for different virtual environments. If the system path is used, all users would have to use the same driver.
from seleniumbase.
(venv) (⎈|N/A:default)➜ tests git:(new2) ✗ seleniumbase install chromedriver latest
*** chromedriver version for download = 107.0.5304.62 (Latest)
Downloading chromedriver_linux64.zip from:
https://chromedriver.storage.googleapis.com/107.0.5304.62/chromedriver_linux64.zip ...
Download Complete!
Extracting ['chromedriver'] from chromedriver_linux64.zip ...
Unzip Complete!
The file [chromedriver] was saved to:
/home/buk/Git/k8s-wp/venv/lib/python3.10/site-packages/seleniumbase/drivers/chromedriver
Making [chromedriver 107.0.5304.62] executable ...
[chromedriver 107.0.5304.62] is now ready for use!
(venv) (⎈|N/A:default)➜ tests git:(new2) ✗ pytest .
(Linux uses --headless by default. To override, use --headed / --gui. For Xvfb mode instead, use --xvfb. Or hide this info with --headless, or by calling the new --headless2.)
==================================================================================================================== test session starts =====================================================================================================================
platform linux -- Python 3.10.6, pytest-7.2.0, pluggy-1.0.0
rootdir: /home/buk/Git/k8s-wp/tests
plugins: html-2.0.1, metadata-2.0.4, xdist-3.0.2, forked-1.4.0, rerunfailures-10.2, seleniumbase-4.8.2, ordering-0.6
collected 1 item
basic_test.py
FAILED basic_test.py::MyTestClass::test_basics - selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary
I wonder why it still doesn't work out of the box with venv :/
from seleniumbase.
It works with firefox seleniumbase install geckodriver
pytest --headed --browser=firefox
from seleniumbase.
@bukowa cannot find Chrome binary
means that Chrome wasn't found on your machine. Chrome must be installed separately. (SeleniumBase only downloads the drivers for you.)
from seleniumbase.
@bukowa
cannot find Chrome binary
means that Chrome wasn't found on your machine. Chrome must be installed separately. (SeleniumBase only downloads the drivers for you.)
Oh ok thank you
from seleniumbase.
Related Issues (20)
- Can't get passed cloudflare using UC mode HOT 1
- UC Mode: Video 2 is now on YouTube! HOT 3
- Request headers not changed if UC mode and Cloudflare HOT 3
- Cannot perform click on a day on datepicker HOT 1
- try to pass ChromeDriverManager, with error HOT 1
- UC detected on linux HOT 4
- SSL Errors on MacOS when downloading chromedriver HOT 1
- Driver Exits with STATUS (selenium-grid-hub (terminated by SIGTERM)) HOT 5
- Exporting recorded script to json HOT 3
- `headless2=True` is detectable HOT 1
- Not able to run on ARM based Ubuntu HOT 1
- Excessive CPU and RAM usage HOT 3
- Highlight all element from sb.find_visible_elements() using for loop HOT 6
- Improvements to highlighting elements HOT 1
- Not able to Login on ticketmaster HOT 3
- Slow opening Chrome (1 minute) on Ubuntu headless HOT 9
- Interrupting the recorder from outside the terminal HOT 1
- How to bypass reCAPTCHA HOT 4
- Add argument to Chromium with Driver class HOT 1
- When using ThreadPoolExecutor, a minor problem occurs. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seleniumbase.