From 6720650d5ee74bd806903e6e585eab2427a9e626 Mon Sep 17 00:00:00 2001 From: Jonathan Klabunde Tomer Date: Tue, 16 Apr 2024 20:22:19 -0700 Subject: [PATCH] amazon: update css selector for transaction history window dropdown (#97) --- 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: