Skip to content

Commit

Permalink
[amazon] fix invoice scraping
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzj29 committed Sep 30, 2023
1 parent ca2ea5c commit 7c9b860
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions finance_dl/amazon.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,8 @@ def invoice_finder():
By.XPATH, '//a[contains(@href, "orderID=")]')
else:
# order summary link is hidden in submenu for each order
elements = self.driver.find_elements_by_xpath(
'//a[@class="a-popover-trigger a-declarative"]')
elements = self.driver.find_elements(By.XPATH,
'//a[contains(@href, "invoice/invoice.html")]')
return [a for a in elements if a.text == self.domain.invoice]

if initial_iteration:
Expand Down Expand Up @@ -437,7 +437,7 @@ def retrieve_all_order_groups():

while True:
(order_filter,), = self.wait_and_return(
lambda: self.find_visible_elements(By.XPATH, '//select[@name="orderFilter"]')
lambda: self.find_visible_elements(By.XPATH, '//select[@name="timeFilter"]')
)
order_select = Select(order_filter)
num_options = len(order_select.options)
Expand Down

0 comments on commit 7c9b860

Please sign in to comment.