diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/download_markit_quotes.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/download_markit_quotes.py b/python/download_markit_quotes.py index 42ca98b4..25357ae7 100644 --- a/python/download_markit_quotes.py +++ b/python/download_markit_quotes.py @@ -31,10 +31,10 @@ driver.find_element_by_css_selector("input[name=username]").send_keys(markit_log driver.find_element_by_css_selector("input[name=password]").send_keys(markit_password) driver.find_element_by_css_selector("input[name=Login]").click() driver.switch_to.window(driver.window_handles[1]) -WebDriverWait(driver, 20).until(EC.frame_to_be_available_and_switch_to_it((By.ID, "provider-frame"))) -menu = WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.CSS_SELECTOR, - "table.menuNavTable td + td div"))) -ActionChains(driver).move_to_element(menu).perform() +menu = WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.CSS_SELECTOR, + "table.menuNavTable td:nth-of-type(2)"))) +time.sleep(1) +menu.click() hiddenmenu = WebDriverWait(driver, 10).until( EC.element_to_be_clickable((By.CSS_SELECTOR, "div.MPopUpMenu div.popupContent table tbody tr:nth-of-type(3) td div"))) |
