I am using Cucumber, Capybara and Selenium If I test User Signup using the browser it works fine. When I run the automated test it Fails "Age certification must be accepted" The Checkbox for "Age certification..." is properly selected during the test however the test still fails. Feature: Signup In order to use this sites cool functionality As a user I want to be able to sign up @javascript Scenario: Signing up Given I am on the home page When I follow "Signup" And I choose "Developer" And I fill in "username" with "testuser" And I fill in "Email" with "testuser-J0of1frlU80@public.gmane.org" And I fill in "Password" with "password" And I fill in "Password confirmation" with "password" And I check "I am over the age of 13" And I press "Signup" Then I should see "signed up successfully" <%= simple_form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %> <%= devise_error_messages! %> <fieldset> <legend>Signup</legend> <%= f.association :role, :collection => Role.find(2,3), :label => "Choose a Role", :as => :radio %> <%= f.input :name, :label => "username" %> <%= f.input :email, :placeholder => ''user-9IKiO1iGCm/QT0dZR+AlfA@public.gmane.org'', :required => true %> <%= f.input :password, :required => true %> <%= f.input :password_confirmation, :required => true, :hint =>''confirmation must match the password'' %> <%= f.input :age_certification, :label => "I am over the age of 13", :as => :boolean %> <%= f.button :submit, "Signup" %> </fieldset> <% end %> -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
hi i read your post seems you are already working on Selenium. can you help me what exactly selenium does or can you send me any link to learn selenium and how does it works. plz... Thanks in advance On Sun, Aug 21, 2011 at 1:55 AM, Pete <ghar-ZQk49NHuUFDi/gmLfIWLuQ@public.gmane.org> wrote:> I am using Cucumber, Capybara and Selenium > > If I test User Signup using the browser it works fine. > > When I run the automated test it Fails "Age certification must be > accepted" > The Checkbox for "Age certification..." is properly selected during > the test > however the test still fails. > > Feature: Signup > In order to use this sites cool functionality > As a user > I want to be able to sign up > > @javascript > Scenario: Signing up > Given I am on the home page > When I follow "Signup" > And I choose "Developer" > And I fill in "username" with "testuser" > And I fill in "Email" with "testuser-J0of1frlU80@public.gmane.org" > And I fill in "Password" with "password" > And I fill in "Password confirmation" with "password" > And I check "I am over the age of 13" > And I press "Signup" > Then I should see "signed up successfully" > > > <%= simple_form_for(resource, :as => resource_name, :url => > registration_path(resource_name)) do |f| %> > <%= devise_error_messages! %> > > <fieldset> > <legend>Signup</legend> > <%= f.association :role, :collection => > Role.find(2,3), :label => "Choose a Role", :as => :radio %> > <%= f.input :name, :label => "username" %> > <%= f.input :email, :placeholder => > ''user-9IKiO1iGCm/QT0dZR+AlfA@public.gmane.org'', :required => true %> > <%= f.input :password, :required => true %> > <%= f.input :password_confirmation, :required => > true, :hint =>''confirmation must match the password'' %> > <%= f.input :age_certification, :label => "I am over the > age of 13", :as => :boolean %> > <%= f.button :submit, "Signup" %> > </fieldset> > <% end %> > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Wed, Jan 4, 2012 at 02:55, hanish jadala <emailtohoneyruby-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> can you help > me what exactly selenium does or can you send me any link to learn selenium > and how does it works. plz...http://www.lmgtfy.com/?q=selenium -- Dave Aronson, President, Dave Aronson Software Engineering and Training Ruby on Rails Freelancing (Northern Virginia, Washington DC, or Remote) DaveAronson.com, Codosaur.us, Dare2XL.com, & RecruitingRants.com (NEW!) Specialization is for insects. (Heinlein) - Have Pun, Will Babble! (me) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.