From 5632d347c3439b0e8c0dff1a3323ccfb3f9947f7 Mon Sep 17 00:00:00 2001 From: Brandon Li Date: Sun, 13 Sep 2026 15:27:05 -0500 Subject: [PATCH] Wait for success modal to close --- lib/automations.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/automations.ts b/lib/automations.ts index b6b6ebf..7c505b8 100644 --- a/lib/automations.ts +++ b/lib/automations.ts @@ -313,12 +313,11 @@ export const FIRMS: Firm[] = [ { action: 'click', selector: '.woocommerce-terms-and-conditions-wrapper+p input', frame: '#woocommerceModal iframe', label: 'Agree to refund policy' }, { action: 'click', selector: 'button#place_order', frame: '#woocommerceModal iframe', label: 'Place order' }, + { action: 'waitFor', selector: '#woocommerceModal', absent: true, hidden: true, timeoutSeconds: 30, label: 'Wait for the modal to close' }, + + { action: 'waitFor', selector: 'div#successModal', label: 'Wait to click the success modal' }, { action: 'click', selector: 'div#successModal button', label: 'Close the success modal' }, - - - - ]}, ], },