title: How would I automatically download files from a pop up dialog using selenium-python
body: <p>I am trying to automatically download files from a pop up dialog using selenium-python. I need it to press 'ok'</p>
  
  <p>I already tried creating a profile but I'm not sure how i can make it work with the driver i'm using to navigate through the website.</p>
  
  <pre><code>driver=webdriver.Firefox(executable_path=r"C:\Users\blank\Downloads\archives\geckodriver.exe")
  driver.get("website")
  .
  .
  .
  .
  #navigating through the page
  driver.find_element(By.LINK_TEXT, "Download").click()
  #pop up dialog box comes up need to automate saying yes
  </code></pre>