Enable Loading of Extensions

from selenium.webdriver.chrome.options import Options
chromeOptions = webdriver.ChromeOptions()
chromeOptions.add_experimental_option('useAutomationExtension', False)
driver = webdriver.Chrome(options=chromeOptions,executable_path="C:\Temp\drivers\chromedriver.exe")

Setting Default Download Path

from selenium.webdriver.chrome.options import Options
chromeOptions = Options()
chromeOptions.add_experimental_option("prefs",{"download.default_directoty": folderPath})
driver = webdriver.Chrome(options=chromeOptions,executable_path="C:\Temp\drivers\chromedriver.exe")

Advertisement