Scripts blocks after get

Hello,

I use the Python API to (try to) download bank statements:

import os, time
from selenium import webdriver

profile = webdriver.FirefoxProfile()

# Configure Firefox to save download without asking
profile.set_preference("browser.download.folderList",2)
profile.set_preference("browser.download.manager.showWhenStarting",False)
profile.set_preference("browser.download.dir", os.getcwd())
profile.set_preference("browser.helperApps.neverAsk.saveToDisk", "text/comma-separated-values-Typ")

browser = webdriver.Firefox(firefox_profile = profile)
browser.implicitly_wait(2)

browser.get('https://www.1822direkt-banking.de/JOBa1822Client/')

# browser.find_element_by_link_text("Annual enterprise survey: 2019 financial year (provisional) – CSV").click()

browser.find_element_by_id('jobausername').send_keys('ABC')
browser.find_element_by_id('password').send_keys('DEF')
browser.find_element_by_id('anmelden').click()

time.sleep(5)

browser.get('https://www.1822direkt-banking.de/JOBa1822Service/api/konto/umsatz/csv?kontoNr=123&anzahl=1&suche=&umsatzart=ALLE&buchungsart=ALLE&zeitraum=ZWEI_MONATE')

browser.get('https://www.1822direkt-banking.de/JOBa1822Service/api/konto/umsatz/csv?kontoNr=456&anzahl=1&suche=&umsatzart=ALLE&buchungsart=ALLE&zeitraum=ZWEI_MONATE')

The first csv file is downloaded just fine, but the call blocks and terminates after some time with a timeout:

Traceback (most recent call last):
  File "test.py", line 24, in <module>
    browser.get('https://www.1822direkt-banking.de/JOBa1822Service/api/konto/umsatz/csv?kontoNr=1251909041&anzahl=1&suche=&umsatzart=ALLE&buchungsart=ALLE&zeitraum=ZWEI_MONATE')
  File "/usr/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 333, in get
    self.execute(Command.GET, {'url': url})
  File "/usr/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/usr/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message: Timeout loading page after 300000ms

Is browser.get() the correct method or what can be wrong there?

Thanks!

This looks like a problem with the Selenium web driver. This is a support forum for the Selenium IDE++ and RPA software. For web driver issues, maybe try Stack Overflow?