Fix selector to be button instead of input
This commit is contained in:
+2
-2
@@ -284,10 +284,10 @@ export const FIRMS: Firm[] = [
|
|||||||
// name="coupon_code") and this template's custom id; list
|
// name="coupon_code") and this template's custom id; list
|
||||||
// both so one of them matches. Apply is WooCommerce's
|
// both so one of them matches. Apply is WooCommerce's
|
||||||
// named submit button, not a positional sibling.
|
// 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: 'waitFor', selector: 'button#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: '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: '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' },
|
{ action: 'click', selector: 'button#apply_coupon', frame: '#woocommerceModal iframe', label: 'Apply coupon' },
|
||||||
{ action: 'click', selector: '.validate-required:not(.woocommerce-validated)', frame: '#woocommerceModal iframe', label: 'Agree to terms' },
|
{ action: 'click', selector: '.validate-required:not(.woocommerce-validated)', frame: '#woocommerceModal iframe', label: 'Agree to terms' },
|
||||||
{ action: 'click', selector: '.validate-required:not(.woocommerce-validated)', frame: '#woocommerceModal iframe', label: 'Agree to terms 2' },
|
{ action: 'click', selector: '.validate-required:not(.woocommerce-validated)', frame: '#woocommerceModal iframe', label: 'Agree to terms 2' },
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user