So, not sure if this is a bug or can be worked around, so I decided to post this one here:
I'm trying to use "within_frame" to populate the stripe input fields in the widget. Something like this:
frame = find("#stripe-card-element > div > iframe")
fill_in name: "cardnumber", with: "4242" * 4
fill_in name: "expdate", with: "1234"
fill_in name: "cvc", with: "1233
this doesn't work. I can find the frame, however when within the frame, I can't find them. I tried also accessing the innerhtml property, but I got the empty iframe (no content inside):
#=> "<iframe autocomplete=......></frame>
Is there a way to work around this? Any reason why stripe widget isn't accessible otherwise?
I'm using docker, with the selenium webdriver "selenium/standalone-chrome-debug:3.141.59-oxygen" image