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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -