mardi 25 juillet 2017

Selenium Cabybara testing with stripe3

we migrated our app form stripe 2 to stripe 3, however selenium test stopped working. We have feature for example

And   Bob enters input "5555555555554444" in "cardNumber" text field

in code

And(/^(\S*) enters input "([^"]*)" in "([^"]*)" text field$/) do |user, txt, field|
  fill_in(field, :with => txt)
end

and we receive error

Unable to find field "cardnumber" (Capybara::ElementNotFound)

My question is is it possible to enter values into new stripe3 fields, it's some kind of iframe, and how? Old stripe fields were regular inputs.

Aucun commentaire:

Enregistrer un commentaire