From d6f0c858ed0d05d61d6a00e6ad899a1c31544cfd Mon Sep 17 00:00:00 2001 From: arshm06 <86798767+arshm06@users.noreply.github.com> Date: Tue, 13 Feb 2024 13:35:33 -0500 Subject: [PATCH] Update custom binary path info (#1184) Co-authored-by: lilvegan <86798767+lilvegan@users.noreply.github.com> --- docs/drivers/chrome.rst | 15 +++++++++++++++ docs/drivers/firefox.rst | 17 +++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/docs/drivers/chrome.rst b/docs/drivers/chrome.rst index b8b46f20f..7b8dc31dc 100644 --- a/docs/drivers/chrome.rst +++ b/docs/drivers/chrome.rst @@ -76,6 +76,21 @@ For example: my_service = Service(executable_path='') 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 -------- diff --git a/docs/drivers/firefox.rst b/docs/drivers/firefox.rst index 8e8564f02..6cbfd8fb0 100644 --- a/docs/drivers/firefox.rst +++ b/docs/drivers/firefox.rst @@ -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 +++++++++++++++