I used Selenium with Python Chrome webdriver.
In my code I used:
driver = webdriver.Chrome(executable_path = PATH_TO_WEBDRIVER)
to point the webdriver to the webdriver executable. Is there a way to point webdriver to the Chrome Browser binaries?
In https://sites.google.com/a/chromium.org/chromedriver/capabilities they have the following (which I assume it what I'm looking for):
ChromeOptions options = new ChromeOptions();
options.setBinary("/path/to/other/chrome/binary");
Anyone has an example for Python?
解决方案
Here is the Answer to your Question:
You can set Chrome Browser Binary to chrome webdriver in Python through the following ways:
Using Options Class:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
options = Opti