Use different load wait
This commit is contained in:
@@ -338,8 +338,8 @@ def download_all_invoices() -> list[Path]:
|
|||||||
if year != "all":
|
if year != "all":
|
||||||
year_select = page.locator("select#yearSelection, select#receiptDateId").first
|
year_select = page.locator("select#yearSelection, select#receiptDateId").first
|
||||||
if year_select.count() > 0:
|
if year_select.count() > 0:
|
||||||
year_select.select_option(value=year)
|
with page.expect_navigation(wait_until="domcontentloaded"):
|
||||||
page.wait_for_load_state("domcontentloaded")
|
year_select.select_option(value=year)
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
invoices = get_invoice_links(page)
|
invoices = get_invoice_links(page)
|
||||||
|
|||||||
Reference in New Issue
Block a user