#SeanH20-3DS
1 messages · Page 1 of 1 (latest)
hi there
there's no recommended way, we don't explicitly support that kind of browser-based testing with Selenium and stuff
hello!
so either you'd test it manually, or in tests you mock things out by passing test tokens like pm_card_visa (https://stripe.com/docs/testing#cards) directly on the backend instead of 3D Secure cards
ah okis, so there's no js command to send the browser to confirm the 3d-secure test window for testing the payments form and flow?
you recommend just using a card that does now have 3d-secure?
correct
that's one option! Or use a card that does need 3D Secure and manually authorise it in the browser popup if that's what you need to test
or maybe you can find a way to make your testing tools like Selenium etc do the action, but we can't give you any pointers there and can't guarantee it would always work
yeah i've already hacked Selenium quite a bit to fill in the card form haha. and i can't figure out how to get to the confirm button, it looks like it's 2 or maybe 3 iframes deep.
yep. I really can't help you with that, we could change the structure of that at any time with no notice
we simply don't support that style of testing, I'm sorry, I know it's a common question but it's not something we have invested in
no that's totally fair enough, if i was to suggest something, it would be a js trigger to send the headless browser to say the confirm button has been pressed, but that's just a suggestion. i'm going to go ahead and skip testing the confirm 3d secure window