capybara
How to assert number of elements using Capybara with proper error message?
I know that in Capybara, you can do something like this: page.should have_css(\"ol li\", :count => 2)[详细]
2023-03-20 19:21 分类:问答Any chance to DRY Capybara code?
# acceptance/users_spec.rb page.should have_content \'Włosy\' page.should have_content \'Oczy\' page.should have_content \'Wzrost\'[详细]
2023-03-20 19:02 分类:问答Unable to trigger mouse event in Capybara test
I am using Capybara 1.0.0, and I have a link in my page which gets visible when mouse hover over that block. So I want to trigger mouse over in test so that I can click that hidden link.开发者_运维百科[详细]
2023-03-20 17:44 分类:问答How do I get cucumber & capybara to use http:// paths instead of file:/// paths?
I\'m using omniauth and cucumber with a new application.I\'ve got omniauth up and working and am trying to add appropriate cucumber feature tests.I kept running into odd errors in testing- errors that[详细]
2023-03-20 11:32 分类:问答Using Capybara for AJAX integration tests
I am using Capybara for rails integration tests. When it comes to AJAX 开发者_运维知识库requests, I am getting the following error:[详细]
2023-03-20 00:59 分类:问答Rails 3, Cucumber, Capybara cannot select element / render complete html
A cucumber feature keeps failing because capybara does not render the whole html as intended here is the feature[详细]
2023-03-19 20:36 分类:问答Integration tests for single sign-on pages
How do you test pages with single sign-on (SSO) login during integration tests (for instance by using ca开发者_如何转开发ybara or cucumber)? For a normal login, you would write a method which visits t[详细]
2023-03-19 13:15 分类:问答Rails - Losing session with Integration Tests and Capybara - CSRF related?
I\'m using Rails 3.1.0.rc4 and I\'m working on doing integration tests with capybara\'s new Steak-like DSL and Rspec (using Devise authentication)[详细]
2023-03-18 08:55 分类:问答Cucumber not storing session past first page view
I am going through this situation: Rails, Cucumber, Capybara: session is not persisted There wasn\'t a开发者_运维技巧 chosen answer on that page, and each posted answer didn\'t work for me, so I will[详细]
2023-03-18 07:37 分类:问答Toggle javascript support programmatically without restarting firefox
The problem: toggle javascript support without restarting firefox (nor resorting to different driver) during cucumber test run.[详细]
2023-03-18 05:30 分类:问答