capybara
How do I use Capybara selectors to select a field properly
I\'ve got a form which allows me to add/edit categories and sub categories within the one form. This form uses AJAX and to test it I\'ve been using Capybara with some selectors.[详细]
2023-03-18 01:39 分类:问答Rails 3.0.9 + Devise + Cucumber + Capybara the infamous "No route matches /users/sign_out"
I am using devise 1.4.2 with rails 3.0.9, cucumber-rails 1.0.2, capybara 1.0.0. I got No route matches \"/users/sign_out\" error when I clicked logout. I added :method => :delete to link_to tag aft[详细]
2023-03-17 13:44 分类:问答Failing to test Devise with Capybara
I\'m building a Rails 3 app using Devise, with Capybara for UI testing.The following test is failing:[详细]
2023-03-17 11:43 分类:问答Changing the value of a session variable in specs while testing in Ruby on rails.(with capybara and selenium)
I\'m currently writing specs for my Ruby on Rails application using Rspec and capybara with selenium to drive the browser.[详细]
2023-03-16 22:00 分类:问答Why doesn't selenium run before_filters in my application controller?
I\'ve got a subdomained rails 3.0 app I\'m trying to test with cucumber/capybara/selenium. I use the subdomain to set the current site in a before_filter in the application controller.[详细]
2023-03-16 19:02 分类:问答How does one use Selenium::WebDriver::Element#click to select an option from a SELECT element?
Using capybara 1.0.0 and selenium-webdriver 0.2.0 and in a test I have something like the following to select from a dropdown.[详细]
2023-03-16 09:58 分类:问答Cucumber BDD with capybara and devise integration
As a followup to my previous question on SO, I have followed the tutorial at https://github.com/RailsApps/rails3-devise-rspec-cucumber/wiki/Tutorial religiously to try pinpoint the origin of my test f[详细]
2023-03-15 17:38 分类:问答How do I test an image src and alt value using capybara?
I\'m trying to writetest the value of alt text + src of an image using capybara and the css selectors.[详细]
2023-03-15 13:57 分类:问答Machinist + Cabybara + Test::Unit = blueprints missing
I\'ve run into a very confusing problem... All my tests pass when i run them in isolation. When I run them like rake test, after my integration tests run, Machinist says that it can\'t find blueprint[详细]
2023-03-14 18:25 分类:问答Cucumber and persistant sessions across redirects
Im using rails - 2.3.8 cucumber - 0.8.5 cucumber-rails - 0.3.2 capybara - 0.4.0 I am trying to test a particular login/registration scenario where the user is redirected before landing on the requ[详细]
2023-03-14 14:48 分类:问答