A wrapper around chromedriver-py library. Detects the Chrome version and installs the most suitable chromedriver-py version.
Just run the following command:
pip install chromedriver-py-auto
Even though this library installs the
chromedriver-py itself, but some
build systems (such as Pants) create different
isolated environments for setup and running, so, the dependencies installed in setup
time got removed at runtime. For this reason, I copied actual driver binary to the
chromedriver_py_auto
package at setup time. Therefore, in addition to the method
presented in
chromedriver-py#usage, the
copied binary can be used as follow:
from chromedriver_py_auto import binary_path
...