From 2eeb97e245bf672c76eae193b782273e1f2a42b3 Mon Sep 17 00:00:00 2001 From: Brandon Li Date: Wed, 2 Sep 2026 13:56:41 -0500 Subject: [PATCH] Wait for coupon button on lucid --- lib/automations.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/automations.ts b/lib/automations.ts index 7971960..0d6a1c3 100644 --- a/lib/automations.ts +++ b/lib/automations.ts @@ -284,6 +284,7 @@ export const FIRMS: Firm[] = [ // name="coupon_code") and this template's custom id; list // both so one of them matches. Apply is WooCommerce's // named submit button, not a positional sibling. + { action: 'waitFor', selector: 'button[name="apply_coupon"], input[name="apply_coupon"]', label: 'Wait for apply coupon button to open' }, { action: 'click', selector: 'input#coupon_code, input[name="coupon_code"], input#coupon_code_field', frame: '#woocommerceModal iframe', label: 'Focus coupon field' }, { action: 'type', selector: 'input#coupon_code, input[name="coupon_code"], input#coupon_code_field', frame: '#woocommerceModal iframe', text: 'THEPROPFARM', label: 'Enter coupon' }, { action: 'click', selector: 'button[name="apply_coupon"], input[name="apply_coupon"]', frame: '#woocommerceModal iframe', label: 'Apply coupon' },