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

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -