aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/download_markit_quotes.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/download_markit_quotes.py b/python/download_markit_quotes.py
index 2070a7bd..1579618b 100644
--- a/python/download_markit_quotes.py
+++ b/python/download_markit_quotes.py
@@ -35,7 +35,8 @@ hiddenmenu = WebDriverWait(driver, 10).until(
"div.MPopUpMenu div.popupContent table tbody tr:nth-of-type(3) td div")))
hiddenmenu.click()
WebDriverWait(driver, 10).until(EC.frame_to_be_available_and_switch_to_it((By.NAME, "MFrame")))
-link = driver.find_element_by_css_selector(".searchBg_bottom span:nth-child(1) table:nth-child(1) tbody:nth-child(1) tr:nth-child(1) td:nth-child(2) a:nth-child(1)")
+link = WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.CSS_SELECTOR,
+".searchBg_bottom span:nth-child(1) table:nth-child(1) tbody:nth-child(1) tr:nth-child(1) td:nth-child(2) a:nth-child(1)")))
link.click()
total_wait = 0