From 5ec8ce684c1d3badda64fc6f0e840bba16689b40 Mon Sep 17 00:00:00 2001 From: Jonathan Klabunde Tomer Date: Mon, 12 Feb 2024 16:04:30 -0800 Subject: [PATCH] amazon: update css selector for transaction history window dropdown --- finance_dl/amazon.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/finance_dl/amazon.py b/finance_dl/amazon.py index d6340dc..a68d76f 100644 --- a/finance_dl/amazon.py +++ b/finance_dl/amazon.py @@ -445,9 +445,7 @@ def retrieve_all_order_groups(): order_select_index = 0 while True: - (order_filter,), = self.wait_and_return( - lambda: self.find_visible_elements(By.XPATH, '//select[@name="orderFilter"]') - ) + order_filter, = self.wait_and_locate((By.CSS_SELECTOR, '#time-filter, #orderFilter')) order_select = Select(order_filter) num_options = len(order_select.options) if order_select_index >= num_options: