A good solution for this is using tab to switch to the next input. In my test I have an input for the cardholder name and I then tab to the CardElement component.
Source:
https://stackoverflow.com/questions/62174765/how-to-use-puppeteer-with-stripe-elements
Reference:
https://github.com/stripe/react-stripe-elements/issues/137#issuecomment-352092164