File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -128,15 +128,21 @@ export async function fillCreditCardDetailsShortcode( page, card ) {
128
128
*/
129
129
export async function fillCreditCardDetailsLegacy ( page , card ) {
130
130
await page
131
- . frameLocator ( '#wc-stripe-card-number-element iframe' )
131
+ . frameLocator (
132
+ '#wc-stripe-card-number-element iframe[name^="__privateStripeFrame"]'
133
+ )
132
134
. locator ( 'input[name="cardnumber"]' )
133
135
. fill ( card . number ) ;
134
136
await page
135
- . frameLocator ( '#wc-stripe-card-expiry-element iframe' )
137
+ . frameLocator (
138
+ '#wc-stripe-card-expiry-element iframe[name^="__privateStripeFrame"]'
139
+ )
136
140
. locator ( 'input[name="exp-date"]' )
137
141
. fill ( card . expires . month + card . expires . year ) ;
138
142
await page
139
- . frameLocator ( '#wc-stripe-card-code-element iframe' )
143
+ . frameLocator (
144
+ '#wc-stripe-card-code-element iframe[name^="__privateStripeFrame"]'
145
+ )
140
146
. locator ( 'input[name="cvc"]' )
141
147
. fill ( card . cvc ) ;
142
148
}
You can’t perform that action at this time.
0 commit comments