ruby - Selenium Cabybara testing with stripe3 -
we migrated our app form stripe 2 stripe 3, selenium test stopped working. have feature example
and bob enters input "5555555555554444" in "cardnumber" text field
in code
and(/^(\s*) enters input "([^"]*)" in "([^"]*)" text field$/) |user, txt, field| fill_in(field, :with => txt) end
and receive error
unable find field "cardnumber" (capybara::elementnotfound)
my question is possible enter values new stripe3 fields, it's kind of iframe, , how? old stripe fields regular inputs.
tried
and(/^(\s*) enters frame "([^"]*)" in "([^"]*)" text field$/) |user, txt, field| within_frame '__privatestripeframe4' find("input[name='cvc']").set(1234) end
Comments
Post a Comment