Some one is sending the junk data through registration form. we have implemented invisible captcha to the user registration form.
We want to test the captcha. How can we loop through a rails form and filling the junk data(through Faker gem or any test data generation gem) and submit the form, to test that invisible captcha?
100.times do |i|
registration_page_url = "xyz.com"
name = Faker.name
mobile = Faker.mobile
email = Faker.email
save the form.
sleep(4)
end
Can some one help me with this.