diff --git a/lib/automations.ts b/lib/automations.ts index 06e8245..70fe04c 100644 --- a/lib/automations.ts +++ b/lib/automations.ts @@ -308,9 +308,9 @@ export const FIRMS: Firm[] = [ // opt-ins). No skipIfNotFound: silently skipping the // second agreement just moves the failure to the // modal-close gate below with a misleading timeout. - { action: 'click', selector: '.validate-required input[type="checkbox"]:not(:checked)', frame: '#woocommerceModal iframe', label: 'Agree to terms' }, + { action: 'click', selector: '.woocommerce-terms-and-conditions-wrapper input', frame: '#woocommerceModal iframe', label: 'Agree to terms' }, - { action: 'click', selector: '.validate-required input[type="checkbox"]:not(:checked):last-child', frame: '#woocommerceModal iframe', label: 'Agree to terms 2' }, + { 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' },