Table of Contents - capybara-1.1.2 Documentation
Pages
README
Capybara
Description:
Install:
Development:
Using Capybara with Cucumber
Using Capybara with RSpec
Using Capybara with Test::Unit
Using Capybara with Ruby on Rails
Using Capybara with Rack
Drivers
Selecting the Driver
RackTest
Selenium
HtmlUnit
env.js
Capybara-webkit
The DSL
Navigating
Clicking links and buttons
Interacting with forms
Querying
Finding
Scoping
Scripting
Debugging
Transactional fixtures
Asynchronous JavaScript (Ajax and friends)
Using the DSL in unsupported testing frameworks
Calling remote servers
Using the sessions manually
XPath, CSS and selectors
Beware the XPath // trap
Configuring and adding drivers
Gotchas:
License:
test_file
Classes/Modules
Capybara
Capybara::CapybaraError
Capybara::DSL
Capybara::Driver
Capybara::Driver::Base
Capybara::Driver::Node
Capybara::Driver::RackTest
Capybara::Driver::Selenium
Capybara::DriverNotFoundError
Capybara::ElementNotFound
Capybara::ExpectationNotMet
Capybara::Features
Capybara::FileNotFound
Capybara::FrozenInTime
Capybara::InfiniteRedirectError
Capybara::LocateHiddenElementError
Capybara::Node
Capybara::Node::Actions
Capybara::Node::Base
Capybara::Node::Document
Capybara::Node::Element
Capybara::Node::Finders
Capybara::Node::Matchers
Capybara::Node::Simple
Capybara::NotSupportedByDriverError
Capybara::RSpecMatchers
Capybara::RSpecMatchers::HaveMatcher
Capybara::RSpecMatchers::HaveSelector
Capybara::RackTest
Capybara::RackTest::Browser
Capybara::RackTest::Driver
Capybara::RackTest::Form
Capybara::RackTest::Form::NilUploadedFile
Capybara::RackTest::Node
Capybara::Selector
Capybara::Selector::Normalized
Capybara::Selenium
Capybara::Selenium::Driver
Capybara::Selenium::Node
Capybara::Server
Capybara::Server::Identify
Capybara::Session
Capybara::TimeoutError
Capybara::UnselectNotAllowed
Object
TestApp
Methods
::add — Capybara::Selector
::add_selector — Capybara
::all — Capybara::Selector
::configure — Capybara
::current_driver — Capybara
::current_session — Capybara
::default_driver — Capybara
::deprecate — Capybara
::drivers — Capybara
::feature — Object
::included — Capybara::Features
::included — Capybara
::javascript_driver — Capybara
::mode — Capybara
::new — Capybara::Selector
::new — Capybara::RSpecMatchers::HaveSelector
::new — Capybara::Server
::new — Capybara::Server::Identify
::new — Capybara::Selenium::Driver
::new — Capybara::RackTest::Form::NilUploadedFile
::new — Capybara::RackTest::Browser
::new — Capybara::RSpecMatchers::HaveMatcher
::new — Capybara::Driver::Node
::new — Capybara::RackTest::Driver
::new — Capybara::Node::Base
::new — Capybara::Node::Simple
::new — Capybara::Session
::new — Capybara::Driver::RackTest
::new — Capybara::Driver::Selenium
::new — Capybara::Node::Element
::normalize — Capybara::Selector
::open_in_browser — Capybara
::ports — Capybara::Server
::register_driver — Capybara
::remove — Capybara::Selector
::reset! — Capybara
::reset_sessions! — Capybara
::run_default_server — Capybara
::save_and_open_page — Capybara
::save_page — Capybara
::server — Capybara
::session_name — Capybara
::string — Capybara
::timeout — Capybara
::use_default_driver — Capybara
::using_driver — Capybara
::using_session — Capybara
::using_wait_time — Capybara
#[] — Capybara::Driver::Node
#[] — Capybara::RackTest::Node
#[] — Capybara::Node::Element
#[] — Capybara::Selenium::Node
#[] — Capybara::Node::Simple
#all — Capybara::Node::Element
#all — Capybara::Node::Finders
#app — Capybara::RackTest::Browser
#arguments — Capybara::RSpecMatchers::HaveMatcher
#attach_file — Capybara::Node::Actions
#body — Capybara::RackTest::Driver
#body — Capybara::Driver::Base
#body — Capybara::Session
#body — Capybara::RackTest::Browser
#body — Capybara::Selenium::Driver
#boot — Capybara::Server
#browser — Capybara::RackTest::Driver
#browser — Capybara::Selenium::Driver
#build_rack_mock_session — Capybara::RackTest::Browser
#call — Capybara::Server::Identify
#call — Capybara::Selector
#check — Capybara::Node::Actions
#checked? — Capybara::Selenium::Node
#checked? — Capybara::Node::Simple
#checked? — Capybara::Driver::Node
#checked? — Capybara::RackTest::Node
#checked? — Capybara::Node::Element
#choose — Capybara::Node::Actions
#cleanup! — Capybara::Session
#click — Capybara::Selenium::Node
#click — Capybara::Driver::Node
#click — Capybara::Node::Element
#click — Capybara::RackTest::Node
#click_button — Capybara::Node::Actions
#click_link — Capybara::Node::Actions
#click_link_or_button — Capybara::Node::Actions
#click_on — Capybara::Node::Actions
#content_type — Capybara::RackTest::Form::NilUploadedFile
#current_host — Capybara::Session
#current_path — Capybara::Session
#current_url — Capybara::Driver::Base
#current_url — Capybara::Session
#current_url — Capybara::RackTest::Driver
#current_url — Capybara::Selenium::Driver
#current_url — Capybara::RackTest::Browser
#delete — Capybara::RackTest::Driver
#description — Capybara::RSpecMatchers::HaveSelector
#description — Capybara::RSpecMatchers::HaveMatcher
#document — Capybara::Session
#does_not_match? — Capybara::RSpecMatchers::HaveSelector
#does_not_match? — Capybara::RSpecMatchers::HaveMatcher
#dom — Capybara::RackTest::Driver
#dom — Capybara::RackTest::Browser
#drag_to — Capybara::Driver::Node
#drag_to — Capybara::Selenium::Node
#drag_to — Capybara::Node::Element
#driver — Capybara::Session
#driver — Capybara::Node::Base
#env — Capybara::RackTest::Browser
#evaluate_script — Capybara::Session
#evaluate_script — Capybara::Driver::Base
#evaluate_script — Capybara::Selenium::Driver
#execute_script — Capybara::Driver::Base
#execute_script — Capybara::Session
#execute_script — Capybara::Selenium::Driver
#extract_normalized_options — Capybara::Node::Finders
#extract_results — Object
#failure_message — Capybara::Selector::Normalized
#failure_message — Capybara::Selector
#failure_message_for_should — Capybara::RSpecMatchers::HaveSelector
#failure_message_for_should — Capybara::RSpecMatchers::HaveMatcher
#failure_message_for_should_not — Capybara::RSpecMatchers::HaveMatcher
#failure_message_for_should_not — Capybara::RSpecMatchers::HaveSelector
#field_labeled — Capybara::Node::Finders
#fill_in — Capybara::Node::Actions
#find — Capybara::RackTest::Node
#find — Capybara::RackTest::Browser
#find — Capybara::RackTest::Driver
#find — Capybara::Node::Element
#find — Capybara::Selenium::Node
#find — Capybara::Selenium::Driver
#find — Capybara::Driver::Base
#find — Capybara::Node::Finders
#find_button — Capybara::Node::Finders
#find_by_id — Capybara::Node::Finders
#find_field — Capybara::Node::Finders
#find_in_base — Capybara::Node::Finders
#find_in_base — Capybara::Node::Simple
#find_link — Capybara::Node::Finders
#find_window — Capybara::Selenium::Driver
#first — Capybara::Node::Finders
#first — Capybara::Node::Element
#follow — Capybara::RackTest::Browser
#follow — Capybara::RackTest::Driver
#follow_redirects! — Capybara::RackTest::Browser
#get — Capybara::RackTest::Driver
#has_button? — Capybara::Node::Matchers
#has_checked_field? — Capybara::Node::Matchers
#has_content? — Capybara::Node::Matchers
#has_css? — Capybara::Node::Matchers
#has_field? — Capybara::Node::Matchers
#has_link? — Capybara::Node::Matchers
#has_no_button? — Capybara::Node::Matchers
#has_no_checked_field? — Capybara::Node::Matchers
#has_no_content? — Capybara::Node::Matchers
#has_no_css? — Capybara::Node::Matchers
#has_no_field? — Capybara::Node::Matchers
#has_no_link? — Capybara::Node::Matchers
#has_no_select? — Capybara::Node::Matchers
#has_no_selector? — Capybara::Node::Matchers
#has_no_table? — Capybara::Node::Matchers
#has_no_unchecked_field? — Capybara::Node::Matchers
#has_no_xpath? — Capybara::Node::Matchers
#has_select? — Capybara::Node::Matchers
#has_selected_options? — Capybara::Node::Finders
#has_selector? — Capybara::Node::Matchers
#has_shortcircuit_timeout? — Capybara::Driver::Base
#has_table? — Capybara::Node::Matchers
#has_unchecked_field? — Capybara::Node::Matchers
#has_xpath? — Capybara::Node::Matchers
#have_button — Capybara::RSpecMatchers
#have_checked_field — Capybara::RSpecMatchers
#have_content — Capybara::RSpecMatchers
#have_css — Capybara::RSpecMatchers
#have_field — Capybara::RSpecMatchers
#have_link — Capybara::RSpecMatchers
#have_select — Capybara::RSpecMatchers
#have_selector — Capybara::RSpecMatchers
#have_table — Capybara::RSpecMatchers
#have_unchecked_field — Capybara::RSpecMatchers
#have_xpath — Capybara::RSpecMatchers
#header — Capybara::RackTest::Driver
#host — Capybara::Server
#html — Capybara::Session
#inspect — Capybara::Driver::Node
#inspect — Capybara::Session
#inspect — Capybara::Node::Document
#inspect — Capybara::Node::Element
#invalid_element_errors — Capybara::Driver::Base
#invalid_element_errors — Capybara::Selenium::Driver
#match — Capybara::Selector
#match? — Capybara::Selector
#matches? — Capybara::RSpecMatchers::HaveMatcher
#matches? — Capybara::RSpecMatchers::HaveSelector
#matches_options — Capybara::Node::Finders
#multipart? — Capybara::RackTest::Form
#name — Capybara::Selector::Normalized
#native — Capybara::Node::Element
#normalized — Capybara::RSpecMatchers::HaveSelector
#options — Capybara::RackTest::Browser
#original_filename — Capybara::RackTest::Form::NilUploadedFile
#page — Capybara::DSL
#params — Capybara::RackTest::Form
#path — Capybara::Driver::Node
#path — Capybara::Node::Element
#path — Capybara::RackTest::Node
#path — Capybara::RackTest::Form::NilUploadedFile
#path — Capybara::Node::Simple
#post — Capybara::RackTest::Driver
#process — Capybara::RackTest::Browser
#put — Capybara::RackTest::Driver
#quit — Capybara::Selenium::Driver
#raise_find_error — Capybara::Node::Finders
#reload — Capybara::Node::Base
#reload — Capybara::Node::Element
#request — Capybara::RackTest::Driver
#request_path — Capybara::RackTest::Browser
#reset! — Capybara::RackTest::Driver
#reset! — Capybara::Driver::Base
#reset! — Capybara::Selenium::Driver
#reset! — Capybara::Session
#reset_cache! — Capybara::RackTest::Browser
#reset_host! — Capybara::RackTest::Browser
#reset_session! — Capybara::Session
#response — Capybara::RackTest::Driver
#response_headers — Capybara::RackTest::Driver
#response_headers — Capybara::Driver::Base
#response_headers — Capybara::Session
#responsive? — Capybara::Server
#resynchronize — Capybara::Selenium::Driver
#save_and_open_page — Capybara::Session
#save_page — Capybara::Session
#select — Capybara::Node::Actions
#select_option — Capybara::Driver::Node
#select_option — Capybara::RackTest::Node
#select_option — Capybara::Selenium::Node
#select_option — Capybara::Node::Element
#selected? — Capybara::Node::Element
#selected? — Capybara::Driver::Node
#selected? — Capybara::Selenium::Node
#selected? — Capybara::Node::Simple
#selected? — Capybara::RackTest::Node
#selector_name — Capybara::RSpecMatchers::HaveSelector
#selector_name — Capybara::RSpecMatchers::HaveMatcher
#set — Capybara::Driver::Node
#set — Capybara::RackTest::Node
#set — Capybara::Node::Element
#set — Capybara::Selenium::Node
#source — Capybara::RackTest::Driver
#source — Capybara::RackTest::Browser
#source — Capybara::Selenium::Driver
#source — Capybara::Session
#source — Capybara::Driver::Base
#split_options — Capybara::Node::Matchers
#status_code — Capybara::RackTest::Driver
#status_code — Capybara::Session
#status_code — Capybara::Driver::Base
#submit — Capybara::RackTest::Browser
#submit — Capybara::RackTest::Form
#submit — Capybara::RackTest::Driver
#tag_name — Capybara::Node::Element
#tag_name — Capybara::Node::Simple
#tag_name — Capybara::Driver::Node
#tag_name — Capybara::Selenium::Node
#tag_name — Capybara::RackTest::Node
#text — Capybara::Driver::Node
#text — Capybara::Node::Document
#text — Capybara::RackTest::Node
#text — Capybara::Node::Element
#text — Capybara::Selenium::Node
#text — Capybara::Node::Simple
#trigger — Capybara::Driver::Node
#trigger — Capybara::Node::Element
#uncheck — Capybara::Node::Actions
#unselect — Capybara::Node::Actions
#unselect_option — Capybara::Selenium::Node
#unselect_option — Capybara::Driver::Node
#unselect_option — Capybara::Node::Element
#unselect_option — Capybara::RackTest::Node
#url — Capybara::Server
#using_session — Capybara::DSL
#using_wait_time — Capybara::DSL
#value — Capybara::Driver::Node
#value — Capybara::Node::Simple
#value — Capybara::RackTest::Node
#value — Capybara::Node::Element
#value — Capybara::Selenium::Node
#visible? — Capybara::Node::Simple
#visible? — Capybara::RackTest::Node
#visible? — Capybara::Node::Element
#visible? — Capybara::Selenium::Node
#visible? — Capybara::Driver::Node
#visit — Capybara::Selenium::Driver
#visit — Capybara::Session
#visit — Capybara::RackTest::Browser
#visit — Capybara::Driver::Base
#visit — Capybara::RackTest::Driver
#wait? — Capybara::Selenium::Driver
#wait? — Capybara::Driver::Base
#wait_until — Capybara::Session
#wait_until — Capybara::Node::Base
#wait_until — Capybara::Node::Simple
#wait_until — Capybara::Driver::Base
#within — Capybara::Session
#within_fieldset — Capybara::Session
#within_frame — Capybara::Driver::Base
#within_frame — Capybara::Session
#within_frame — Capybara::Selenium::Driver
#within_table — Capybara::Session
#within_window — Capybara::Selenium::Driver
#within_window — Capybara::Session
#within_window — Capybara::Driver::Base
#wrap — Capybara::RSpecMatchers::HaveMatcher
#wrap — Capybara::RSpecMatchers::HaveSelector
#xpath — Capybara::Selector