Skip to content

Commit

Permalink
amazon: update css selector for transaction history window dropdown (#97
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jktomer authored Apr 17, 2024
1 parent 196faef commit 6720650
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions finance_dl/amazon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6720650

Please sign in to comment.