cache.write(..., namespace: 'abc')
find(:xpath, '//div[contains(@class, "StripeElement ")]').send_keys("4000002760003184")but that gives me an error: unknown error: cannot focus element
fill_in('Card details', :with => "4000002760003184")this method always skips the first character, never enters a '4'.
find('div.StripeElement').send_keys(...)- wouldn't change whether or not it works but will be slightly faster, easier to read, and you don't have to worry about // vs .// scoping trap that you do when using XPath
find(:field, ‘Card Details’).click.fill_in(with: ‘....’)fails:
unknown error: Element ...so I tried with
find('div.StripeElement').click.fill_in(with: card_number)but that still skips the first character... There are so many different ways to do this I get a little lost in the methods. Thanks in advance