i'm trying to load url https://www.eurexchange.com/exchange-en/products/idx/stx/blc/EURO-STOXX-50-Index-Options-46548
however some of the page get infinite loading recently and the time.sleep() function with a selenium.webdriver.execute_script('window.stop()') doesn't sovle the problem.
tried:
browser.execute_script('window.stip()')
and browser.find_element_by_tag_name("body").sendkeys(Keys.ESCAPE)
still see the page loading.
website_url = 'https://www.eurexchange.com/exchange-en/products/idx/stx/blc/EURO-STOXX-50-Index-Options-46548'
browser = webdriver.Chrome(executable_path=chromedriver_path, options=chrome_options)
dropdown = Select(browser.find_element_by_xpath('//*[@id="maturityDate"]'))
dropdown_len = len(dropdown.options)
for i in range(1, dropdown_len):
rows = []
time.sleep(2)
browser.execute_script('window.stop()')
# browser.find_element_by_tag_name("body").sendkeys(Keys.ESCAPE)