Skip to content

Commit

Permalink
Update custom binary path info (#1184)
Browse files Browse the repository at this point in the history
Co-authored-by: lilvegan <[email protected]>
  • Loading branch information
arshm06 and arshm06 authored Feb 13, 2024
1 parent 69749e5 commit d6f0c85
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/drivers/chrome.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,21 @@ For example:
my_service = Service(executable_path='</path/to/chromedriver>')
browser = Browser('chrome', service=my_service)
Custom binary path
~~~~~~~~~~~~~~~~~~~~~~

The Service object can be used to specify the binary path.
For example:

.. code-block:: python
from selenium import webdriver
chrome_options = webdriver.chrome.options.Options()
chrome_options.binary_location = "/path/to/canary"
browser = Browser('chrome', options=chrome_options)
API docs
--------
Expand Down
17 changes: 17 additions & 0 deletions docs/drivers/firefox.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,23 @@ For example:
browser = Browser('firefox', service=my_service)
Custom binary path
~~~~~~~~~~~~~~~~~~~~~~

The Service object can be used to specify the binary path.
For example:

.. code-block:: python
from selenium import webdriver
firefox_options = webdriver.firefox.options.Options()
firefox_options.binary_location = "/path/to/canary"
browser = Browser('firefox', options=firefox_options)
Specify Profile
+++++++++++++++

Expand Down

0 comments on commit d6f0c85

Please sign in to comment.