title: Fill out form and download zipfile using Selenium in Python
body: <p>EDITED: I incorporated the final lines suggested by Sushil. At the end, I am copying the output in my terminal. I still do not get the zipfile.</p>
  <p>SOLVED: My error was due to an incompatibility between the driver and chrome versions. I fixed by following the instructions here: <a href="https://stackoverflow.com/questions/49162667/unknown-error-call-function-result-missing-value-for-selenium-send-keys-even">unknown error: call function result missing &#39;value&#39; for Selenium Send Keys even after chromedriver upgrade</a></p>
  <hr />
  <p>I am trying to use Selenium to fill out a form and download a zipfile.
  After extensively googling, I have written a Python code, but I am currently unable to download the file. A browser opens, but nothing is filled out.</p>
  <p>I am very new at Python, so I am guessing I am missing something very trivial since the website I am trying to get info from is super simple.</p>
  <p>This is what I have tried:</p>
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  
  driver = webdriver.Chrome(executable_path='/home/miranda/webscrap_Python/chromedriver')
  #driver.wait = WebDriverWait(driver,5)
  driver.get(&quot;http://www.cis.es/cis/opencms/EN/formulario.jsp?dwld=/Microdatos/MD3288.zip&quot;)
  
  Name = '//*[@id=&quot;Nombre&quot;]'
  LastName = '//*[@id=&quot;Apellidos&quot;]'
  University = '//*[@id=&quot;profesion&quot;]'
  email = '//*[@id=&quot;Email&quot;]'
  
  ob_req = '//*[@id=&quot;objeto1&quot;]'
  terms = '//*[@id=&quot;Terminos&quot;]'
  
  download = '//*[@id=&quot;mediomicrodatos&quot;]/form/div[3]/input'
  
  driver.find_element_by_xpath(Name).send_keys(&quot;Miranda&quot;)
  
  driver.find_element_by_xpath(LastName).send_keys(&quot;MyLastName&quot;)
  
  driver.find_element_by_xpath(University).send_keys(&quot;MySchool&quot;)
  
  driver.find_element_by_xpath(email).send_keys(&quot;my_email@gmail.com&quot;)
  
  #lines added by Sushil:
  
  ob_req_element =  driver.find_element_by_xpath(ob_req) #Finds the ob_req element
  driver.execute_script(&quot;arguments[0].click();&quot;, ob_req_element) #Scrolls down to the element and clicks on it
  
  terms_element = driver.find_element_by_xpath(terms) #The same is repeated here
  driver.execute_script(&quot;arguments[0].click();&quot;, terms_element)
  
  driver.find_element_by_xpath(download).click() #Scrolling down is not needed for the download button as it would already be in view. Only when an element is not in view should we scroll down to it in order to click on it.
  
  
  </code></pre>
  <p>Output in my terminal:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;myCode.py&quot;, line 18, in &lt;module&gt;
      driver.find_element_by_xpath(Name).send_keys(&quot;Miranda&quot;)
    File &quot;/home/miranda/anaconda3/lib/python3.7/site-packages/selenium/webdriver/remote/webelement.py&quot;, line 479, in send_keys
      'value': keys_to_typing(value)})
    File &quot;/home/miranda/anaconda3/lib/python3.7/site-packages/selenium/webdriver/remote/webelement.py&quot;, line 633, in _execute
      return self._parent.execute(command, params)
    File &quot;/home/miranda/anaconda3/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py&quot;, line 321, in execute
      self.error_handler.check_response(response)
    File &quot;/home/miranda/anaconda3/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py&quot;, line 242, in check_response
      raise exception_class(message, screen, stacktrace)
  selenium.common.exceptions.WebDriverException: Message: unknown error: call function result missing 'value'
    (Session info: chrome=86.0.4240.75)
    (Driver info: chromedriver=2.29.461571 (8a88bbe0775e2a23afda0ceaf2ef7ee74e822cc5),platform=Linux 5.4.0-45-generic x86_64)
  </code></pre>