From 2d0c87b900bb2dfa95177a4d1593ab95d9e42c25 Mon Sep 17 00:00:00 2001 From: Brandon Li Date: Wed, 2 Sep 2026 14:06:26 -0500 Subject: [PATCH] Added frame in wait for --- lib/automations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/automations.ts b/lib/automations.ts index 73c52a7..bdbdced 100644 --- a/lib/automations.ts +++ b/lib/automations.ts @@ -284,7 +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#apply_coupon_button', label: 'Wait for apply coupon button to open' }, + { action: 'waitFor', selector: 'button#apply_coupon_button', frame: '#woocommerceModal iframe', 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#apply_coupon_button', frame: '#woocommerceModal iframe', label: 'Apply coupon' },