I am trying to download pdf from https://www.axisbank.com/interest-rate-on-deposits?cta=homepage-rhs-fd link following code only open the website and click on download link but i am not able to download pdf Python code
print("Helllo Pratik")
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_experimental_option('prefs', {
"download.default_directory": "D:\\pdf_download",
"download.prompt_for_download": False,
"download.directory_upgrade": True,
"plugins.always_open_pdf_externally": True
})
driver = webdriver.Chrome('D:\driver_chrome\chromedriver.exe',options=options)
driver.get("https://www.axisbank.com/interest-rate-on-deposits?cta=homepage-rhs-fd")
element=driver.find_element_by_xpath("/html/body/div[1]/div[2]/div/div/div[2]/a/div/div/span")
element.click()
driver.quit()