I want to download csv files from "https://clinicaltrials.gov/ct2/results?cond=&term=lomitapide&cntry1=&state1=&SearchAll=Search+all+studies&recrs=" website I am using python and selenium script as written below:But i get the exception "ElementNotInteractableException" and unable to download the page
from selenium import webdriver
fp=webdriver.FirefoxProfile()
fp.set_preference("browser.helperApps.neverAsk.saveToDisk","text/csv")
browser = webdriver.Firefox(fp)
browser.get("https://clinicaltrials.gov/ct2/results?cond=&term=lomitapide&cntry1=&state1=&SearchAll=Search+all+studies&recrs=")
browser.find_element_by_id("submit-download-list")
You are getting the exception ElementNotInteractableException because the element will be accessible after once the popup opens up. You are missing to click the download link which opens up the popup. please try the following,
Here is the Answer to your Question:
The element you referred as
find_element_by_id("submit-download-list")
actually downloads aPDF
file. So for the benefit of future programmers and readers of this question/post/thread/discussion, you may consider to change your question header toDownload and Save PDF file using selenium and python from popup
Here is the code block to Download and Save PDF file using selenium and python from popup:
Let me know if this Answers your Question.