capybara
Using Capybara to test pure JavaScript application
I\'m having some problems using Sinatra with Capybara. I want to test a pure javascript application. It\'s just a plain index.html that is being served by Sinatra.[详细]
2023-04-13 05:04 分类:问答capybara, selenium interact with hidden or display: none css properties
I\'m using similar construction: <div class=\"edit\" style=\"visibility: hidden;\"> <a href=\"some_path\" id=\"edit_item\">Edit</a>[详细]
2023-04-13 03:28 分类:问答ActionController::RoutingError: No route matches [POST]
require \'test_helper\' class MyTest < ActionController::IntegrationTest test \"view posts from login page\" do[详细]
2023-04-13 01:44 分类:问答Multiple Calls to Visit with RSpec and Capybara
I have a requests spec that makes multiple calls to visit within a single block (visits \'/sessions/new\' and visits \'/admin\'). This results in:[详细]
2023-04-12 18:57 分类:问答Fire event mouseenter/mouseleave on Capybara/Selenium on Firefox
So here\'s my code for trigger the event page.execute_script(\"$(\'.image_grid\').trigger(\'mouseenter\');\")[详细]
2023-04-12 12:29 分类:问答Releasing a Cucumber-* gem which uses the After blocks
I\'ve built a simple Gem to do screenshots for Capybara Webkit on scenario failure, and it also saves an HTML file of the current page regardless of which Capybara driver you are using. However, I am[详细]
2023-04-12 07:59 分类:问答Spork with Capybara on Windows 7
Here is my problem: I have started spork on my Windows 7 and it just works fine (2 magazine_slave_service are setup -- after several attempts though). But when I run bundle exec rspec spec to execute[详细]
2023-04-11 13:57 分类:问答Capybara attach_file method, via selenium-webdriver, leaves system file upload dialogue open
I have a slightly weird file upload user flow in an application I am testing which causes the file upload dialogue to remain open when testing with selenium-webdriver, via capybara.[详细]
2023-04-11 06:12 分类:问答How should I be testing this situation?
I\'m working with ruby, and I want to test the UI and general behaviour of a server that is in-production. These are strictly non-destructive tests, just to insure the program is working correctly wit[详细]
2023-04-10 21:52 分类:问答When testing a web-app, what is the best way to test that I'm on the right page?
I\'m currently building tests using Capybara/Rails, and want to know the most reliable/standard way for testing that I am on the correct page in the following situations:[详细]
2023-04-10 20:03 分类:问答